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