Skip to content

Commit

Permalink
Add more identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
cernat-catalin committed Feb 14, 2023
1 parent 0e427ff commit f246e6b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
/** A {@link BugChecker} that flags methods and constants that should not be statically imported. */
// XXX: Also introduce checks that disallows the following candidates:
// - `ZoneOffset.ofHours` and other `ofXXX`-style methods.
// - `java.time.Clock`.
// - Several other `java.time` classes.
// - Likely any of `*.{ZERO, ONE, MIX, MAX, MIN_VALUE, MAX_VALUE}`.
@AutoService(BugChecker.class)
@BugPattern(
summary = "Identifier should not be statically imported",
Expand Down Expand Up @@ -108,7 +106,10 @@ public final class NonStaticImport extends BugChecker implements IdentifierTreeM
"newBuilder",
"newInstance",
"of",
"valueOf");
"ONE",
"parse",
"valueOf",
"ZERO");

/** Instantiates a new {@link NonStaticImport} instance. */
public NonStaticImport() {}
Expand Down

0 comments on commit f246e6b

Please sign in to comment.