@@ -65,8 +65,9 @@ public static void populateMap(
6565 for (EntryExpression entry : options .entryExpressions ()) {
6666 Expression optionExpr = entry .key ();
6767 Expression valueExpr = entry .value ();
68- Expression .TypeResolution resolution =
69- isFoldable (optionExpr , source .text (), paramOrdinal ).and (isFoldable (valueExpr , source .text (), paramOrdinal ));
68+ Expression .TypeResolution resolution = isFoldable (optionExpr , source .text (), paramOrdinal ).and (
69+ isFoldable (valueExpr , source .text (), paramOrdinal )
70+ );
7071 if (resolution .unresolved ()) {
7172 throw new InvalidArgumentException (resolution .message ());
7273 }
@@ -77,24 +78,16 @@ public static void populateMap(
7778 // validate the optionExpr is supported
7879 DataType dataType = allowedOptions .get (optionName );
7980 if (dataType == null ) {
80- throw new InvalidArgumentException (format (
81- null ,
82- "Invalid option [{}] in [{}], expected one of {}" ,
83- optionName ,
84- source .text (),
85- allowedOptions .keySet ()
86- ));
81+ throw new InvalidArgumentException (
82+ format (null , "Invalid option [{}] in [{}], expected one of {}" , optionName , source .text (), allowedOptions .keySet ())
83+ );
8784 }
8885 try {
8986 optionsMap .put (optionName , DataTypeConverter .convert (optionValue , dataType ));
9087 } catch (InvalidArgumentException e ) {
91- throw new InvalidArgumentException (format (
92- null ,
93- "Invalid option [{}] in [{}], {}" ,
94- optionName ,
95- source .text (),
96- e .getMessage ()
97- ));
88+ throw new InvalidArgumentException (
89+ format (null , "Invalid option [{}] in [{}], {}" , optionName , source .text (), e .getMessage ())
90+ );
9891 }
9992 }
10093 }
0 commit comments