Simplify boolean returns
Simplify boolean returns of the form:
if (b) {
return true;
} else {
return false;
}
to:
return b;
Issue gh-8945
This commit is contained in:
@@ -220,12 +220,7 @@ public class ChannelDecisionManagerImplTests {
|
||||
|
||||
@Override
|
||||
public boolean supports(ConfigAttribute attribute) {
|
||||
if (attribute.getAttribute().equals(this.configAttribute)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
return attribute.getAttribute().equals(this.configAttribute);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -170,12 +170,7 @@ public class ChannelProcessingFilterTests {
|
||||
|
||||
@Override
|
||||
public boolean supports(ConfigAttribute attribute) {
|
||||
if (attribute.getAttribute().equals(this.supportAttribute)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
return attribute.getAttribute().equals(this.supportAttribute);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user