Polish Conditional Statements

See gh-31320
This commit is contained in:
chaewon121
2023-09-27 11:16:26 +09:00
committed by Stéphane Nicoll
parent d50ec68ad7
commit d6a105c151

View File

@@ -90,13 +90,10 @@ public final class ParamsRequestCondition extends AbstractRequestCondition<Param
*/
@Override
public ParamsRequestCondition combine(ParamsRequestCondition other) {
if (isEmpty() && other.isEmpty()) {
if (other.isEmpty()) {
return this;
}
else if (other.isEmpty()) {
return this;
}
else if (isEmpty()) {
if (isEmpty()) {
return other;
}
Set<ParamExpression> set = new LinkedHashSet<>(this.expressions);