AssertJOptionalRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$).*
as compiler argument.
Table of contents
AssertThatOptional
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatOptional")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AssertThatOptional).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AbstractOptionalAssertIsPresent
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AbstractOptionalAssertIsPresent")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AbstractOptionalAssertIsPresent).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatOptionalIsPresent
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatOptionalIsPresent")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AssertThatOptionalIsPresent).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AbstractOptionalAssertIsEmpty
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AbstractOptionalAssertIsEmpty")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AbstractOptionalAssertIsEmpty).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatOptionalIsEmpty
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatOptionalIsEmpty")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AssertThatOptionalIsEmpty).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AbstractOptionalAssertHasValue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AbstractOptionalAssertHasValue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AbstractOptionalAssertHasValue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AbstractOptionalAssertContainsSame
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AbstractOptionalAssertContainsSame")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AbstractOptionalAssertContainsSame).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatOptionalHasValueMatching
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatOptionalHasValueMatching")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!AssertJOptionalRules\$AssertThatOptionalHasValueMatching).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.