diff --git a/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/arraybounds/PruneArrayOutOfBoundExceptionEdge.java b/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/arraybounds/PruneArrayOutOfBoundExceptionEdge.java index 49e87130e..eef8b589e 100644 --- a/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/arraybounds/PruneArrayOutOfBoundExceptionEdge.java +++ b/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/arraybounds/PruneArrayOutOfBoundExceptionEdge.java @@ -206,8 +206,9 @@ public class PruneArrayOutOfBoundExceptionEdge { SSAInstruction lastInstruction = block.getLastInstruction(); lastInstruction.getExceptionTypes(); - Matcher> matcher1 = anyOf(hasItem(equalTo(TypeReference.JavaLangNullPointerException)), - hasItem(equalTo(TypeReference.JavaLangArrayIndexOutOfBoundsException))); + final Matcher> isJLNPE = hasItem(equalTo(TypeReference.JavaLangNullPointerException)); + final Matcher> isJLAIOOBE = hasItem(equalTo(TypeReference.JavaLangArrayIndexOutOfBoundsException)); + final Matcher> matcher1 = anyOf(isJLNPE, isJLAIOOBE); collector.checkThat("Edge deleted but cause instruction can't throw NullPointerException" + "nor ArrayIndexOutOfBoundsException: " + identifyer + ":" + method.getLineNumber(lastInstruction.iindex),