MapEntryRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$).*
as compiler argument.
Table of contents
MapEntry
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapEntry")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$MapEntry).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapEntryComparingByKey
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapEntryComparingByKey")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$MapEntryComparingByKey).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapEntryComparingByKeyWithCustomComparator
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapEntryComparingByKeyWithCustomComparator")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$MapEntryComparingByKeyWithCustomComparator).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapEntryComparingByValue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapEntryComparingByValue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$MapEntryComparingByValue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapEntryComparingByValueWithCustomComparator
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapEntryComparingByValueWithCustomComparator")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapEntryRules\$MapEntryComparingByValueWithCustomComparator).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.