Class ApplyingAndSuppressingOrRemoveUnusedInterference
java.lang.Object
com.palantir.gradle.suppressibleerrorprone.modes.interferences.ApplyingAndSuppressingOrRemoveUnusedInterference
- All Implemented Interfaces:
ModeInterference
public final class ApplyingAndSuppressingOrRemoveUnusedInterference
extends Object
implements ModeInterference
Interference between Apply invalid input: '&'invalid input: '&' (Suppress || RemoveUnused).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninterfere(Map<ModeName, CommonOptions> modeCommonOptions) Modify the modeCommonOptions if the flags interfere with each other.interferesWith(Set<ModeName> modeNames) Identify which of the flags interfere with each other.
-
Constructor Details
-
ApplyingAndSuppressingOrRemoveUnusedInterference
public ApplyingAndSuppressingOrRemoveUnusedInterference()
-
-
Method Details
-
interferesWith
Description copied from interface:ModeInterferenceIdentify which of the flags interfere with each other.- Specified by:
interferesWithin interfaceModeInterference- Parameters:
modeNames- The flags that are enabled in this run- Returns:
- Either no interference, the flags that interfere with each other, or why they are incompatible
-
interfere
Description copied from interface:ModeInterferenceModify the modeCommonOptions if the flags interfere with each other.- Specified by:
interferein interfaceModeInterference- Parameters:
modeCommonOptions- A map from theModeNames that were indicated to be interfering inModeInterference.interferesWith(Set)to their correspondingCommonOptions.- Returns:
- The modified
CommonOptionsthat will be used in place of the originals that the flags produced
-