本文整理汇总了Java中edu.umd.cs.findbugs.ba.PruneUnconditionalExceptionThrowerEdges类的典型用法代码示例。如果您正苦于以下问题:Java PruneUnconditionalExceptionThrowerEdges类的具体用法?Java PruneUnconditionalExceptionThrowerEdges怎么用?Java PruneUnconditionalExceptionThrowerEdges使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PruneUnconditionalExceptionThrowerEdges类属于edu.umd.cs.findbugs.ba包,在下文中一共展示了PruneUnconditionalExceptionThrowerEdges类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import edu.umd.cs.findbugs.ba.PruneUnconditionalExceptionThrowerEdges; //导入依赖的package包/类
@Override
public void visit(Method obj) {
if (obj.isAbstract() || obj.isSynthetic())
return;
if (!obj.isPublic())
return;
if (!getMethodName().equals("clone"))
return;
if (!getMethodSig().startsWith("()"))
return;
hasCloneMethod = true;
cloneIsDeprecated = getXMethod().isDeprecated();
cloneMethodAnnotation = MethodAnnotation.fromVisitedMethod(this);
cloneOnlyThrowsException = PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XFactory
.createXMethod(this));
// ExceptionTable tbl = obj.getExceptionTable();
// throwsExceptions = tbl != null && tbl.getNumberOfExceptions() > 0;
}
示例2: visit
import edu.umd.cs.findbugs.ba.PruneUnconditionalExceptionThrowerEdges; //导入依赖的package包/类
@Override
public void visit(Method obj) {
if (obj.isAbstract() || BCELUtil.isSynthetic(obj))
return;
if (!obj.isPublic())
return;
if (!getMethodName().equals("clone"))
return;
if (!getMethodSig().startsWith("()"))
return;
hasCloneMethod = true;
cloneIsDeprecated = getXMethod().isDeprecated();
cloneMethodAnnotation = MethodAnnotation.fromVisitedMethod(this);
cloneOnlyThrowsException = PruneUnconditionalExceptionThrowerEdges.doesMethodUnconditionallyThrowException(XFactory
.createXMethod(this));
// ExceptionTable tbl = obj.getExceptionTable();
// throwsExceptions = tbl != null && tbl.getNumberOfExceptions() > 0;
}