Java 类org.apache.bcel.generic.IfInstruction 实例源码

项目:findbugs-all-the-bugs    文件:LazyInit.java   
/**
 * @param nextHandle
 * @return
 */
private boolean potentialInitialization(InstructionHandle nextHandle) {
    if (nextHandle == null)
        return true;
    Instruction instruction = nextHandle.getInstruction();
    if (instruction instanceof ReturnInstruction)
        return false;
    if (instruction instanceof IfInstruction)
        return false;
    return true;
}
项目:findbugs-all-the-bugs    文件:TargetEnumeratingVisitor.java   
@Override
public void visitIfInstruction(IfInstruction ins) {
    isBranch = true;
    InstructionHandle target = ins.getTarget();
    if (target == null)
        throw new IllegalStateException();
    targetList.add(new Target(target, IFCMP_EDGE));
    InstructionHandle fallThrough = handle.getNext();
    targetList.add(new Target(fallThrough, FALL_THROUGH_EDGE));
}
项目:FindBug-for-Domino-Designer    文件:LazyInit.java   
/**
 * @param nextHandle
 * @return
 */
private boolean potentialInitialization(InstructionHandle nextHandle) {
    if (nextHandle == null)
        return true;
    Instruction instruction = nextHandle.getInstruction();
    if (instruction instanceof ReturnInstruction)
        return false;
    if (instruction instanceof IfInstruction)
        return false;
    return true;
}
项目:FindBug-for-Domino-Designer    文件:TargetEnumeratingVisitor.java   
@Override
public void visitIfInstruction(IfInstruction ins) {
    isBranch = true;
    InstructionHandle target = ins.getTarget();
    if (target == null)
        throw new IllegalStateException();
    targetList.add(new Target(target, IFCMP_EDGE));
    InstructionHandle fallThrough = handle.getNext();
    targetList.add(new Target(fallThrough, FALL_THROUGH_EDGE));
}