Simplify boolean expression
Simplify boolean expression of the form `if (b == true)` to instead just use the form `if (b)`. Issue gh-8945
This commit is contained in:
+1
-1
@@ -234,7 +234,7 @@ public class HeadersBeanDefinitionParser implements BeanDefinitionParser {
|
||||
headersWriter.addPropertyValue("preload", preload);
|
||||
}
|
||||
|
||||
if (disabled == true) {
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
|
||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||
<suppressions>
|
||||
<suppress files=".*" checks="SimplifyBooleanExpression" />
|
||||
<suppress files=".*" checks="SimplifyBooleanReturn" />
|
||||
<suppress files=".*" checks="SpringAvoidStaticImport" />
|
||||
<suppress files=".*" checks="SpringCatch" />
|
||||
|
||||
Reference in New Issue
Block a user