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