Skip to content

Commit ce7e55a

Browse files
authored
Disallow static import of values (#1998)
This matches changes in Error Prone's `BadImport` check. See google/error-prone@7e6e113
1 parent 45b2b43 commit ce7e55a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ public final class NonStaticImport extends BugChecker implements CompilationUnit
144144
"newInstance",
145145
"of",
146146
"parse",
147-
"valueOf");
147+
"valueOf",
148+
"values");
148149

149150
/** Instantiates a new {@link NonStaticImport} instance. */
150151
public NonStaticImport() {}

0 commit comments

Comments
 (0)