Skip to content

Commit

Permalink
Checking if setting include_source_... to true fixes the builds
Browse files Browse the repository at this point in the history
  • Loading branch information
baldawar committed Nov 23, 2023
1 parent 6175850 commit 1d353a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/main/software/amazon/event/ruler/JsonRuleCompiler.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package software.amazon.event.ruler;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.core.*;
import software.amazon.event.ruler.input.ParseException;

import java.io.IOException;
Expand Down Expand Up @@ -50,7 +47,9 @@
*/
public class JsonRuleCompiler {

private static final JsonFactory JSON_FACTORY = new JsonFactory();
private static final JsonFactory JSON_FACTORY = JsonFactory.builder()
.configure(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION, true)
.build();

private JsonRuleCompiler() { }

Expand Down
9 changes: 4 additions & 5 deletions src/main/software/amazon/event/ruler/RuleCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import java.util.Map;
import java.util.Set;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.core.*;
import software.amazon.event.ruler.input.ParseException;

import static software.amazon.event.ruler.input.DefaultParser.getParser;
Expand All @@ -33,7 +30,9 @@
*/
public final class RuleCompiler {

private static final JsonFactory JSON_FACTORY = new JsonFactory();
private static final JsonFactory JSON_FACTORY = JsonFactory.builder()
.configure(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION, true)
.build();

private RuleCompiler() {
throw new UnsupportedOperationException("You can't create instance of utility class.");
Expand Down

0 comments on commit 1d353a2

Please sign in to comment.