Skip to content

Commit

Permalink
initialize var to emptyMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Duin committed Aug 28, 2019
1 parent 5ae04e8 commit 851042f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class AbstractAvroSerDeTransformation implements TableReplicatio
private final AvroSerDeConfig avroSerDeConfig;
private String eventId;
private String tableLocation;
private Map<String, Object> avroSerdeConfigOverride;
private Map<String, Object> avroSerdeConfigOverride = Collections.emptyMap();
static final String AVRO_SCHEMA_URL_PARAMETER = "avro.schema.url";

protected AbstractAvroSerDeTransformation(AvroSerDeConfig avroSerDeConfig) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ protected DummyAvroSerDeTransformation(AvroSerDeConfig avroSerDeConfig) {
}

private static final String EVENT_ID = "eventId";

private AbstractAvroSerDeTransformation transformation;

@Before
public void setUp() {
AvroSerDeConfig defaultConfig = new AvroSerDeConfig();
defaultConfig.setBaseUrl("default");
transformation = new DummyAvroSerDeTransformation(defaultConfig);

}

@Test
Expand Down

0 comments on commit 851042f

Please sign in to comment.