Committed by
Gerrit Code Review
Simplify branch condition
Change-Id: Ib2fe28d74ea520032415a05df809a66a7f33c6e2
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -86,7 +86,7 @@ final class ContinuousResourceAllocation { | ... | @@ -86,7 +86,7 @@ final class ContinuousResourceAllocation { |
86 | ((ContinuousResource) x.resource()).value() == resource.value())) | 86 | ((ContinuousResource) x.resource()).value() == resource.value())) |
87 | .collect(Collectors.toList()); | 87 | .collect(Collectors.toList()); |
88 | 88 | ||
89 | - if (matched.size() > 0) { | 89 | + if (!matched.isEmpty()) { |
90 | matched.remove(0); | 90 | matched.remove(0); |
91 | } | 91 | } |
92 | 92 | ... | ... |
-
Please register or login to post a comment