if ( Interpreter.DEBUG ) { Interpreter.debug("Invoking method (entry): " +method+" with args:" ); for(int i=0; i<args.length; i++) Interpreter.debug( "args["+i+"] = "+args[i] +" type = "+args[i].getClass() ); }
if ( Interpreter.DEBUG ) { Interpreter.debug("Invoking method (after massaging values): " +method+" with tmpArgs:" ); for(int i=0; i<tmpArgs.length; i++) Interpreter.debug( "tmpArgs["+i+"] = "+tmpArgs[i] +" type = "+tmpArgs[i].getClass() ); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/Reflect.java File path: /jEdit-4.2/src/bsh/Reflect.java
Method name: Object invokeOnMethod(Method, Object, Object[]) Method name: Object invokeOnMethod(Method, Object, Object[])
Number of AST nodes: 4 Number of AST nodes: 4
1
if ( Interpreter.DEBUG ) 
1
if ( Interpreter.DEBUG ) 
2
		{
2
		{
3
			Interpreter.debug("Invoking method (entry): "
3
			Interpreter.debug("Invoking method (after massaging values): "
4
				+method+" with args:" );
4
				+method+" with tmpArgs:" );
5
			for(int i=0; i<args.length; i++)
5
			for(int i=0; i<tmpArgs.length; i++)
6
				Interpreter.debug(
6
				Interpreter.debug(
7
					"args["+i+"] = "+args[i]
7
					"tmpArgs["+i+"] = "+tmpArgs[i]
8
					+" type = "+args[i].getClass() );
8
					+" type = "+tmpArgs[i].getClass() );
9
		}
9
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons8
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    if (Interpreter.DEBUG)
    13
    if (Interpreter.DEBUG)
    4
    Interpreter.debug("Invoking method (entry): " + method + " with args:");
    4
    Interpreter.debug("Invoking method (entry): " + method + " with args:");
    14
    Interpreter.debug("Invoking method (after massaging values): " + method + " with tmpArgs:");
    Differences
    Expression1Expression2Difference
    " with args:"" with tmpArgs:"LITERAL_VALUE_MISMATCH
    "Invoking method (entry): ""Invoking method (after massaging values): "LITERAL_VALUE_MISMATCH
    14
    Interpreter.debug("Invoking method (after massaging values): " + method + " with tmpArgs:");
    5
    for (int i = 0; i < args.length; i++)
    5
    for (int i = 0; i < args.length; i++)
    15
    for (int i = 0; i < tmpArgs.length; i++)
    Differences
    Expression1Expression2Difference
    argstmpArgsVARIABLE_NAME_MISMATCH
    15
    for (int i = 0; i < tmpArgs.length; i++)
    6
    Interpreter.debug("args[" + i + "] = " + args[i] + " type = " + args[i].getClass());
    6
    Interpreter.debug("args[" + i + "] = " + args[i] + " type = " + args[i].getClass());
    16
    Interpreter.debug("tmpArgs[" + i + "] = " + tmpArgs[i] + " type = " + tmpArgs[i].getClass());
    Differences
    Expression1Expression2Difference
    argstmpArgsVARIABLE_NAME_MISMATCH
    argstmpArgsVARIABLE_NAME_MISMATCH
    "args[""tmpArgs["LITERAL_VALUE_MISMATCH
    16
    Interpreter.debug("tmpArgs[" + i + "] = " + tmpArgs[i] + " type = " + tmpArgs[i].getClass());
    Precondition Violations (0)
    Row Violation