Interface PatchChecksOption
- All Known Implementing Classes:
PatchChecksOption.AllChecks, PatchChecksOption.NoChecks, PatchChecksOption.PossiblySomeChecks
public sealed interface PatchChecksOption
permits PatchChecksOption.NoChecks, PatchChecksOption.AllChecks, PatchChecksOption.PossiblySomeChecks
Error Prone has two different ways to patch checks, either you can patch *all* the checks or just patch specific
checks. This class represents these two options, and allows combining them sensibly. ie if one mode patches all
checks and another mode patches specific checks, then the combined option will patch all checks.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic PatchChecksOptiondefault PatchChecksOptioncombine(PatchChecksOption other) booleanstatic PatchChecksOptionnoChecks()static PatchChecksOptionsomeChecks(String... patchChecks) static PatchChecksOptionsomeChecks(Supplier<Set<String>> patchChecks)
-
Method Details
-
isPatching
boolean isPatching() -
asCommaSeparated
-
combine
-
allChecks
-
someChecks
-
someChecks
-
noChecks
-