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