Skip to content

Commit

Permalink
GEODE-7468: fix compiler warnings (apache#4341)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschneider-pivotal authored Nov 19, 2019
1 parent 59be423 commit a58636b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void validateForCreate_throwsIfAutoSerializerHasNullPatterns() {
PdxValidator validator = new PdxValidator();
Pdx pdx = new Pdx();

pdx.setAutoSerializer(new AutoSerializer(false, null));
pdx.setAutoSerializer(new AutoSerializer(false, (List<String>) null));

assertThatThrownBy(() -> validator.validate(CREATE, pdx))
.isInstanceOf(IllegalArgumentException.class)
Expand All @@ -84,7 +84,7 @@ public void validateForDelete_acceptsAutoSerializerWithNullPatterns() {
PdxValidator validator = new PdxValidator();
Pdx pdx = new Pdx();

pdx.setAutoSerializer(new AutoSerializer(false, null));
pdx.setAutoSerializer(new AutoSerializer(false, (List<String>) null));

assertThatCode(() -> validator.validate(DELETE, pdx))
.doesNotThrowAnyException();
Expand All @@ -95,7 +95,7 @@ public void validateForUpdate_acceptsAutoSerializerWithNullPatterns() {
PdxValidator validator = new PdxValidator();
Pdx pdx = new Pdx();

pdx.setAutoSerializer(new AutoSerializer(false, null));
pdx.setAutoSerializer(new AutoSerializer(false, (List<String>) null));

assertThatCode(() -> validator.validate(UPDATE, pdx))
.doesNotThrowAnyException();
Expand Down

0 comments on commit a58636b

Please sign in to comment.