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

View File

@@ -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);
}
}

View File

@@ -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);
}
}