Interface ModifyCheckApiOption
- All Known Implementing Classes:
ModifyCheckApiOption.DoNotModify, ModifyCheckApiOption.MustModify, ModifyCheckApiOption.NoEffect
public sealed interface ModifyCheckApiOption
permits ModifyCheckApiOption.DoNotModify, ModifyCheckApiOption.NoEffect, ModifyCheckApiOption.MustModify
suppressible-error-prone is powered by an artifact transform that modifies the error_prone_check_api jar.
Some modes must not run with this jar modified, some must run with it modified (and then some may or may not need
the VisitorState class modified), and some don't care. This class represents these states and allows combining them
sensibly.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enumstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptioncombine(Collection<ModifyCheckApiOption> options) static ModifyCheckApiOptionTheerror_prone_check_apijar must not be modified.default Set<com.palantir.suppressibleerrorprone.transform.ModifiedFile> mustModify(com.palantir.suppressibleerrorprone.transform.ModifiedFile... modifiedFile) Modify these files in the error-prone API.static ModifyCheckApiOptionnoEffect()It doesn't matter whether theerror_prone_check_apijar is modified or not.
-
Method Details
-
doNotModify
Theerror_prone_check_apijar must not be modified. -
noEffect
It doesn't matter whether theerror_prone_check_apijar is modified or not. This will have no effect on the decision made. -
mustModify
static ModifyCheckApiOption.MustModify mustModify(com.palantir.suppressibleerrorprone.transform.ModifiedFile... modifiedFile) Modify these files in the error-prone API. -
getModifiedFiles
-
combine
-