Skip to content

Commit

Permalink
Remove some unused constructors.
Browse files Browse the repository at this point in the history
I assume these were used for test construction before BugCheckerRefactoringBlahBlahHelper supported reflectively constructing checks.

PiperOrigin-RevId: 424327367
  • Loading branch information
graememorgan authored and Error Prone Team committed Jan 26, 2022
1 parent 9941ae5 commit 24c90b6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public class MissingOverride extends BugChecker implements MethodTreeMatcher {
/** if true, don't warn on missing {@code @Override} annotations inside interfaces */
private final boolean ignoreInterfaceOverrides;

public MissingOverride() {
this(ErrorProneFlags.empty());
}

public MissingOverride(ErrorProneFlags flags) {
this.ignoreInterfaceOverrides =
flags.getBoolean("MissingOverride:IgnoreInterfaceOverrides").orElse(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ public class ParameterName extends BugChecker

private final ImmutableList<String> exemptPackages;

public ParameterName() {
this(ErrorProneFlags.empty());
}

public ParameterName(ErrorProneFlags errorProneFlags) {
this.exemptPackages =
errorProneFlags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ public class ImmutableChecker extends BugChecker
private final WellKnownMutability wellKnownMutability;
private final ImmutableSet<String> immutableAnnotations;

@Deprecated // Used reflectively, but you should pass in ErrorProneFlags to get custom mutability
public ImmutableChecker() {
this(ErrorProneFlags.empty());
}

ImmutableChecker(ImmutableSet<String> immutableAnnotations) {
this(ErrorProneFlags.empty(), immutableAnnotations);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ public class ImmutableEnumChecker extends BugChecker implements ClassTreeMatcher

private final WellKnownMutability wellKnownMutability;

@Deprecated // Used reflectively, but you should pass in ErrorProneFlags to get custom mutability
public ImmutableEnumChecker() {
this(ErrorProneFlags.empty());
}

public ImmutableEnumChecker(ErrorProneFlags flags) {
this.wellKnownMutability = WellKnownMutability.fromFlags(flags);
}
Expand Down

0 comments on commit 24c90b6

Please sign in to comment.