PreconditionsRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$).*
as compiler argument.
Table of contents
CheckArgument
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckArgument")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckArgument).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckArgumentWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckArgumentWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckArgumentWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckElementIndexWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckElementIndexWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckElementIndexWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
RequireNonNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("RequireNonNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$RequireNonNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
RequireNonNullStatement
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("RequireNonNullStatement")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$RequireNonNullStatement).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
RequireNonNullWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("RequireNonNullWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$RequireNonNullWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
RequireNonNullWithMessageStatement
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("RequireNonNullWithMessageStatement")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$RequireNonNullWithMessageStatement).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckPositionIndex
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckPositionIndex")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckPositionIndex).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckPositionIndexWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckPositionIndexWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckPositionIndexWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckState
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckState")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckState).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
CheckStateWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("CheckStateWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!PreconditionsRules\$CheckStateWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.