diff --git a/refaster-support/src/test/java/tech/picnic/errorprone/refaster/matchers/IsRefasterAsVarargsTest.java b/refaster-support/src/test/java/tech/picnic/errorprone/refaster/matchers/IsRefasterAsVarargsTest.java index 8df32498f0f..ba72c54f99b 100644 --- a/refaster-support/src/test/java/tech/picnic/errorprone/refaster/matchers/IsRefasterAsVarargsTest.java +++ b/refaster-support/src/test/java/tech/picnic/errorprone/refaster/matchers/IsRefasterAsVarargsTest.java @@ -20,18 +20,13 @@ void matches() { " return new int[4];", " }", "", - " static String[] util() {", - " return new String[5];", - " }", - "", " String[] negative2() {", - " return A.util();", + " return \"foo\".split(\"o\");", " }", "", " String[] positive1() {", - " String a = \"a\";", " // BUG: Diagnostic contains:", - " return Refaster.asVarargs(a);", + " return Refaster.asVarargs(\"o\");", " }", "}") .doTest();