Polish Conditional Statements
See gh-31320
This commit is contained in:
committed by
Stéphane Nicoll
parent
d50ec68ad7
commit
d6a105c151
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user