ComparatorRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$).*
as compiler argument.
Table of contents
- NaturalOrder
- ReverseOrder
- CustomComparator
- ThenComparing
- ThenComparingReversed
- ThenComparingCustom
- ThenComparingCustomReversed
- ThenComparingDouble
- ThenComparingInt
- ThenComparingLong
- ThenComparingNaturalOrder
- CompareTo
- MinOfVarargs
- MinOfPairNaturalOrder
- MinOfPairCustomOrder
- MaxOfVarargs
- MaxOfPairNaturalOrder
- MaxOfPairCustomOrder
- ComparatorsMin
- ComparatorsMax
- MinByNaturalOrder
- MaxByNaturalOrder
NaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("NaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$NaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ReverseOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ReverseOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ReverseOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CustomComparator
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CustomComparator")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$CustomComparator).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparing
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparing")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparing).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingReversed
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingReversed")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingReversed).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingCustom
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingCustom")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingCustom).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingCustomReversed
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingCustomReversed")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingCustomReversed).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingDouble
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingDouble")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingDouble).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingInt
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingInt")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingInt).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingLong
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingLong")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingLong).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ThenComparingNaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ThenComparingNaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ThenComparingNaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CompareTo
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CompareTo")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$CompareTo).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MinOfVarargs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MinOfVarargs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MinOfVarargs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MinOfPairNaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MinOfPairNaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MinOfPairNaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MinOfPairCustomOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MinOfPairCustomOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MinOfPairCustomOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MaxOfVarargs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MaxOfVarargs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MaxOfVarargs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MaxOfPairNaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MaxOfPairNaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MaxOfPairNaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MaxOfPairCustomOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MaxOfPairCustomOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MaxOfPairCustomOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ComparatorsMin
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ComparatorsMin")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ComparatorsMin).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
ComparatorsMax
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ComparatorsMax")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$ComparatorsMax).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MinByNaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MinByNaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MinByNaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MaxByNaturalOrder
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MaxByNaturalOrder")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!ComparatorRules\$MaxByNaturalOrder).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.