AssertJNumberRules
SUGGESTION
Simplification
View source code on GitHub
Suppression
Disable all rules by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$).*
as
compiler argument.
Table of contents
- NumberAssertIsPositive
- NumberAssertIsNotPositive
- NumberAssertIsNegative
- NumberAssertIsNotNegative
- AssertThatIsOdd
- AssertThatIsEven
NumberAssertIsPositive
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("NumberAssertIsPositive")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$NumberAssertIsPositive).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.
NumberAssertIsNotPositive
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("NumberAssertIsNotPositive")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$NumberAssertIsNotPositive).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.
NumberAssertIsNegative
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("NumberAssertIsNegative")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$NumberAssertIsNegative).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.
NumberAssertIsNotNegative
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("NumberAssertIsNotNegative")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$NumberAssertIsNotNegative).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.
AssertThatIsOdd
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("AssertThatIsOdd")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$AssertThatIsOdd).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.
AssertThatIsEven
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("AssertThatIsEven")
to
the enclosing element.
Disable this rule by adding -XepOpt:Refaster:NamePattern=^(?!AssertJNumberRules\$AssertThatIsEven).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is
applied.