1
0
mirror of synced 2026-08-04 09:17:02 +00:00

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:
Phillip Webb
2020-07-27 20:22:28 -07:00
committed by Rob Winch
parent b69825d925
commit 9a3fa6e812
8 changed files with 8 additions and 44 deletions
@@ -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);
}
}