PrimitiveRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$).*
as compiler argument.
Table of contents
- LessThan
- LessThanOrEqualTo
- GreaterThan
- GreaterThanOrEqualTo
- LongToIntExact
- BooleanHashCode
- ByteHashCode
- CharacterHashCode
- ShortHashCode
- IntegerHashCode
- LongHashCode
- FloatHashCode
- DoubleHashCode
- BooleanCompare
- CharacterCompare
- ShortCompare
- IntegerCompare
- LongCompare
- FloatCompare
- DoubleCompare
- CharacterBytes
- ShortBytes
- IntegerBytes
- LongBytes
- FloatBytes
- DoubleBytes
- FloatIsFinite
- DoubleIsFinite
- IntegerSignumIsPositive
- IntegerSignumIsNegative
- LongSignumIsPositive
- LongSignumIsNegative
LessThan
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LessThan")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LessThan).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LessThanOrEqualTo
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LessThanOrEqualTo")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LessThanOrEqualTo).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
GreaterThan
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("GreaterThan")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$GreaterThan).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
GreaterThanOrEqualTo
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("GreaterThanOrEqualTo")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$GreaterThanOrEqualTo).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongToIntExact
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongToIntExact")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongToIntExact).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
BooleanHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("BooleanHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$BooleanHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ByteHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ByteHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$ByteHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CharacterHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CharacterHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$CharacterHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ShortHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ShortHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$ShortHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IntegerHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IntegerHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$IntegerHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FloatHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FloatHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$FloatHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
DoubleHashCode
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DoubleHashCode")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$DoubleHashCode).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
BooleanCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("BooleanCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$BooleanCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CharacterCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CharacterCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$CharacterCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ShortCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ShortCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$ShortCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IntegerCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IntegerCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$IntegerCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FloatCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FloatCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$FloatCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
DoubleCompare
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DoubleCompare")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$DoubleCompare).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CharacterBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CharacterBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$CharacterBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ShortBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ShortBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$ShortBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IntegerBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IntegerBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$IntegerBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FloatBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FloatBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$FloatBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
DoubleBytes
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DoubleBytes")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$DoubleBytes).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FloatIsFinite
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FloatIsFinite")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$FloatIsFinite).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
DoubleIsFinite
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DoubleIsFinite")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$DoubleIsFinite).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IntegerSignumIsPositive
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IntegerSignumIsPositive")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$IntegerSignumIsPositive).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
IntegerSignumIsNegative
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IntegerSignumIsNegative")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$IntegerSignumIsNegative).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongSignumIsPositive
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongSignumIsPositive")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongSignumIsPositive).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
LongSignumIsNegative
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("LongSignumIsNegative")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PrimitiveRules\$LongSignumIsNegative).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.