The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 693 |
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 760 |
public void visitINVOKEVIRTUAL(INVOKEVIRTUAL o){ stack().pop(); //objectref for (int i=0; i<o.getArgumentTypes(cpg).length; i++){ stack().pop(); } // We are sure the invoked method will xRETURN eventually // We simulate xRETURNs functionality here because we // don't really "jump into" and simulate the invoked // method. if (o.getReturnType(cpg) != Type.VOID){ Type t = o.getReturnType(cpg); if ( t.equals(Type.BOOLEAN) || t.equals(Type.CHAR) || t.equals(Type.BYTE) || t.equals(Type.SHORT) ) t = Type.INT; stack().push(t); } } /** Symbolically executes the corresponding Java Virtual Machine instruction. */ public void visitIOR(IOR o){ |
File | Line |
---|---|
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 694 |
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 722 |
stack().pop(); //objectref for (int i=0; i<o.getArgumentTypes(cpg).length; i++){ stack().pop(); } // We are sure the invoked method will xRETURN eventually // We simulate xRETURNs functionality here because we // don't really "jump into" and simulate the invoked // method. if (o.getReturnType(cpg) != Type.VOID){ Type t = o.getReturnType(cpg); if ( t.equals(Type.BOOLEAN) || t.equals(Type.CHAR) || t.equals(Type.BYTE) || t.equals(Type.SHORT) ) t = Type.INT; stack().push(t); } } /** Symbolically executes the corresponding Java Virtual Machine instruction. */ public void visitINVOKESTATIC(INVOKESTATIC o){ |
File | Line |
---|---|
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ControlFlowGraph.java | 304 |
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\Subroutines.java | 578 |
single[0] = instruction.getNext(); return single; } if (inst instanceof GotoInstruction){ single[0] = ((GotoInstruction) inst).getTarget(); return single; } if (inst instanceof BranchInstruction){ if (inst instanceof Select){ // BCEL's getTargets() returns only the non-default targets, // thanks to Eli Tilevich for reporting. InstructionHandle[] matchTargets = ((Select) inst).getTargets(); InstructionHandle[] ret = new InstructionHandle[matchTargets.length+1]; ret[0] = ((Select) inst).getTarget(); System.arraycopy(matchTargets, 0, ret, 1, matchTargets.length); return ret; } else{ |
File | Line |
---|---|
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 695 |
org\apache\commons\javaflow\bytecode\transformation\bcel\analyser\ExecutionVisitor.java | 742 |
for (int i=0; i<o.getArgumentTypes(cpg).length; i++){ stack().pop(); } // We are sure the invoked method will xRETURN eventually // We simulate xRETURNs functionality here because we // don't really "jump into" and simulate the invoked // method. if (o.getReturnType(cpg) != Type.VOID){ Type t = o.getReturnType(cpg); if ( t.equals(Type.BOOLEAN) || t.equals(Type.CHAR) || t.equals(Type.BYTE) || t.equals(Type.SHORT) ) t = Type.INT; stack().push(t); } } /** Symbolically executes the corresponding Java Virtual Machine instruction. */ public void visitINVOKEVIRTUAL(INVOKEVIRTUAL o){ |