Really fixed AssertThatGuavaOptional inspections to avoid conversions from .get() to .contains() for array types.

This commit is contained in:
2019-09-25 18:38:35 +02:00
parent e3444db213
commit 2b97494c17
6 changed files with 14 additions and 12 deletions
@@ -73,6 +73,8 @@ public class GuavaOptional {
assertThat(opt.orNull()).as("foo").isEqualTo(null).isNotNull();
assertThat(Optional.of(new byte[] { 2, 3 }).get()).isEqualTo(new byte[] { 2, 3 }); // not working with assertj-guava 3.2.1
org.junit.Assert.assertThat(opt, null);
fail("oh no!");
}