diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/AssertJIsNullCheck.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/AssertJIsNullCheck.java index 6220a1b5959..b3eadfed897 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/AssertJIsNullCheck.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/AssertJIsNullCheck.java @@ -21,11 +21,10 @@ import com.sun.source.tree.MethodInvocationTree; /** - * A {@link BugChecker} which flags AssertJ {@code isEqualTo(null)} checks for simplification.
- * This cannot be done using a refaster template, as refaster is unable to match the abstraction - * layers in AssertJ + * A {@link BugChecker} which flags AssertJ {@code isEqualTo(null)} checks for simplification. * - *

Example: assertThat("foo").isEqualTo(null) will not be matched by refaster. + *

This cannot be done by using only Refaster templates, as Refaster is not able to match *all* + * {@code AbstractAssert} subtypes correctly. */ @AutoService(BugChecker.class) @BugPattern(