String clsName = getClassConstantOperand(); if (!safeClasses.contains(clsName)) { try { JavaClass cls = Repository.lookupClass(clsName); Method[] methods = cls.getMethods(); String methodName = getNameConstantOperand(); String signature = getSigConstantOperand(); boolean found = false; for (Method m : methods) { if (m.getName().equals(methodName) && m.getSignature().equals(signature)) { if (isAnonymousInnerCtor(m, cls)) { String[] thrownExceptions = et.getExceptionNames(); for (String thrownException : thrownExceptions) { removeThrownExceptionHierarchy(thrownException); clearExceptions(); clearExceptions(); } else if ("wait".equals(getNameConstantOperand())) { removeException("java.lang.InterruptedException"); String exSig = item.getSignature(); String thrownException = SignatureUtils.stripSignature(exSig); removeThrownExceptionHierarchy(thrownException); } else { clearExceptions();
if (Values.DOTTED_JAVA_LANG_EXCEPTION.equals(thrownException) || Values.DOTTED_JAVA_LANG_THROWABLE.equals(thrownException)) { clearExceptions(); } else { removeException(thrownException); JavaClass exCls = Repository.lookupClass(thrownException); String clsName; removeException(clsName); } while (!declaredCheckedExceptions.isEmpty() && !Values.DOTTED_JAVA_LANG_EXCEPTION.equals(clsName) && !Values.DOTTED_JAVA_LANG_ERROR.equals(clsName)); clearExceptions();
Method method = getMethod(); if (et != null) { if (classIsFinal || classIsAnonymous || method.isStatic() || method.isPrivate() || method.isFinal() || ((Values.CONSTRUCTOR.equals(method.getName()) && !isAnonymousInnerCtor(method, getThisClass())))) { String[] exNames = et.getExceptionNames(); for (String exName : exNames) {
Method method = getMethod(); if (et != null) { if (classIsFinal || classIsAnonymous || method.isStatic() || method.isPrivate() || method.isFinal() || ((Values.CONSTRUCTOR.equals(method.getName()) && !isAnonymousInnerCtor(method, getThisClass())))) { String[] exNames = et.getExceptionNames(); for (String exName : exNames) {
clearExceptions(); } else { removeException(thrownException); JavaClass exCls = Repository.lookupClass(thrownException); String clsName; removeException(clsName); } while (!declaredCheckedExceptions.isEmpty() && !Values.DOTTED_JAVA_LANG_EXCEPTION.equals(clsName) && !Values.DOTTED_JAVA_LANG_ERROR.equals(clsName)); clearExceptions();
String clsName = getClassConstantOperand(); if (!safeClasses.contains(clsName)) { try { JavaClass cls = Repository.lookupClass(clsName); Method[] methods = cls.getMethods(); String methodName = getNameConstantOperand(); String signature = getSigConstantOperand(); boolean found = false; for (Method m : methods) { if (m.getName().equals(methodName) && m.getSignature().equals(signature)) { if (isAnonymousInnerCtor(m, cls)) { String[] thrownExceptions = et.getExceptionNames(); for (String thrownException : thrownExceptions) { removeThrownExceptionHierarchy(thrownException); clearExceptions(); clearExceptions(); } else if ("wait".equals(getNameConstantOperand())) { removeException("java.lang.InterruptedException"); String exSig = item.getSignature(); String thrownException = SignatureUtils.stripSignature(exSig); removeThrownExceptionHierarchy(thrownException); } else { clearExceptions();