ClassRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$).*
as compiler argument.
Table of contents
ClassIsInstance
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ClassIsInstance")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$ClassIsInstance).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
Instanceof
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("Instanceof")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$Instanceof).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ClassLiteralIsInstancePredicate
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ClassLiteralIsInstancePredicate")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$ClassLiteralIsInstancePredicate).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ClassReferenceIsInstancePredicate
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ClassReferenceIsInstancePredicate")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$ClassReferenceIsInstancePredicate).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ClassReferenceCast
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ClassReferenceCast")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ClassRules\$ClassReferenceCast).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.