Skip to content

Commit

Permalink
the lambda tests depend on this ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed Jun 26, 2024
1 parent 9cc19a4 commit a9c77e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public String apply(String input) {
StringWriter writer = new StringWriter();
String json = data.toString();
if (json.startsWith("{")) {
compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, Map.class)});
compile.execute(writer, new Object[]{new ObjectMapper().readValue(json, Map.class), functionMap.get(file)});
} else if (json.startsWith("[")) {
compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, List.class)});
} else {
Expand Down

0 comments on commit a9c77e8

Please sign in to comment.