From 9dfb06bd512de12e7e7de7796b11ef45518eacaa Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sun, 12 Feb 2023 20:23:44 +0100 Subject: [PATCH] Squash the final mutant --- .../errorprone/bugpatterns/util/ConflictDetectionTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/ConflictDetectionTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/ConflictDetectionTest.java index 1eee5d7ff8..70282dd4fa 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/ConflictDetectionTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/ConflictDetectionTest.java @@ -23,9 +23,12 @@ void matcher() { "", "import static pkg.A.B.method3t;", "", + "import pkg.A.method4t;", + "", "class A {", " void method1() {", " method3t();", + " method4(method4t.class);", " }", "", " // BUG: Diagnostic contains: a method named `method2t` is already defined in this class or a", @@ -37,12 +40,16 @@ void matcher() { " // BUG: Diagnostic contains: `method3t` is already statically imported", " void method3() {}", "", + " void method4(Object o) {}", + "", " // BUG: Diagnostic contains: `int` is not a valid identifier", " void in() {}", "", " static class B {", " static void method3t() {}", " }", + "", + " class method4t {}", "}") .doTest(); }