Minor. Convert loop to 'removeIf' call
This commit is contained in:
@@ -548,12 +548,7 @@ public class MethodInliner {
|
|||||||
|
|
||||||
//clean dead try/catch blocks
|
//clean dead try/catch blocks
|
||||||
List<TryCatchBlockNode> blocks = node.tryCatchBlocks;
|
List<TryCatchBlockNode> blocks = node.tryCatchBlocks;
|
||||||
for (Iterator<TryCatchBlockNode> iterator = blocks.iterator(); iterator.hasNext(); ) {
|
blocks.removeIf(MethodInliner::isEmptyTryInterval);
|
||||||
TryCatchBlockNode block = iterator.next();
|
|
||||||
if (isEmptyTryInterval(block)) {
|
|
||||||
iterator.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user