MapRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$).*
as compiler argument.
Table of contents
CreateEnumMap
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CreateEnumMap")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$CreateEnumMap).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapGetOrNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapGetOrNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapGetOrNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapGetOrDefault
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapGetOrDefault")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapGetOrDefault).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapIsEmpty
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapIsEmpty")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapIsEmpty).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapSize
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapSize")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapSize).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapContainsKey
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapContainsKey")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapContainsKey).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapContainsValue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapContainsValue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapContainsValue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapKeyStream
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapKeyStream")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapKeyStream).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
MapValueStream
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("MapValueStream")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!MapRules\$MapValueStream).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.