SuggestedFixRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$).*
as compiler argument.
Table of contents
SuggestedFixDelete
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixDelete")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixDelete).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixReplaceTree
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixReplaceTree")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixReplaceTree).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixReplaceStartEnd
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixReplaceStartEnd")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixReplaceStartEnd).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixReplaceTreeStartEnd
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixReplaceTreeStartEnd")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixReplaceTreeStartEnd).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixSwap
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixSwap")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixSwap).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixPrefixWith
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixPrefixWith")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixPrefixWith).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SuggestedFixPostfixWith
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SuggestedFixPostfixWith")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!SuggestedFixRules\$SuggestedFixPostfixWith).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.