EqualityRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$).*
as compiler argument.
Table of contents
EnumReferenceEquality
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("EnumReferenceEquality")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$EnumReferenceEquality).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
EnumReferenceEqualityLambda
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("EnumReferenceEqualityLambda")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$EnumReferenceEqualityLambda).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
EqualsPredicate
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("EqualsPredicate")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$EqualsPredicate).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
DoubleNegation
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DoubleNegation")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$DoubleNegation).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
Negation
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("Negation")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$Negation).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IndirectDoubleNegation
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IndirectDoubleNegation")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$IndirectDoubleNegation).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
PredicateLambda
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("PredicateLambda")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$PredicateLambda).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
Equals
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("Equals")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$Equals).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ObjectsEquals
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ObjectsEquals")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!EqualityRules\$ObjectsEquals).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.