StringRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$).*
as compiler argument.
Table of contents
StringIsEmpty
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringIsEmpty")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringIsEmpty).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
StringIsEmptyPredicate
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringIsEmptyPredicate")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringIsEmptyPredicate).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
StringIsNotEmptyPredicate
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringIsNotEmptyPredicate")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringIsNotEmptyPredicate).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
StringIsNullOrEmpty
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringIsNullOrEmpty")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringIsNullOrEmpty).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
OptionalNonEmptyString
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("OptionalNonEmptyString")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$OptionalNonEmptyString).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FilterEmptyString
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FilterEmptyString")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$FilterEmptyString).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
JoinStrings
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("JoinStrings")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$JoinStrings).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
StringValueOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringValueOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringValueOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
NewStringFromCharArraySubSequence
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("NewStringFromCharArraySubSequence")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$NewStringFromCharArraySubSequence).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
NewStringFromCharArray
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("NewStringFromCharArray")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$NewStringFromCharArray).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
StringValueOfMethodReference
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("StringValueOfMethodReference")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$StringValueOfMethodReference).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
SubstringRemainder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("SubstringRemainder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$SubstringRemainder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
Utf8EncodedLength
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("Utf8EncodedLength")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!StringRules\$Utf8EncodedLength).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.