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() ); }
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() ); }
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 (after massaging values): "
3
			Interpreter.debug("Invoking method (entry): "
4
				+method+" with tmpArgs:" );
4
				+method+" with args:" );
5
			for(int i=0; i<tmpArgs.length; i++)
5
			for(int i=0; i<args.length; i++)
6
				Interpreter.debug(
6
				Interpreter.debug(
7
					"tmpArgs["+i+"] = "+tmpArgs[i]
7
					"args["+i+"] = "+args[i]
8
					+" type = "+tmpArgs[i].getClass() );
8
					+" type = "+args[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.3
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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    13
    if (Interpreter.DEBUG)
    3
    if (Interpreter.DEBUG)
    14
    Interpreter.debug("Invoking method (after massaging values): " + method + " with tmpArgs:");
    14
    Interpreter.debug("Invoking method (after massaging values): " + method + " with tmpArgs:");
    4
    Interpreter.debug("Invoking method (entry): " + method + " with args:");
    Differences
    Expression1Expression2Difference
    " with tmpArgs:"" with args:"LITERAL_VALUE_MISMATCH
    "Invoking method (after massaging values): ""Invoking method (entry): "LITERAL_VALUE_MISMATCH
    4
    Interpreter.debug("Invoking method (entry): " + method + " with args:");
    15
    for (int i = 0; i < tmpArgs.length; i++)
    15
    for (int i = 0; i < tmpArgs.length; i++)
    5
    for (int i = 0; i < args.length; i++)
    Differences
    Expression1Expression2Difference
    tmpArgsargsVARIABLE_NAME_MISMATCH
    5
    for (int i = 0; i < args.length; i++)
    16
    Interpreter.debug("tmpArgs[" + i + "] = " + tmpArgs[i] + " type = " + tmpArgs[i].getClass());
    16
    Interpreter.debug("tmpArgs[" + i + "] = " + tmpArgs[i] + " type = " + tmpArgs[i].getClass());
    6
    Interpreter.debug("args[" + i + "] = " + args[i] + " type = " + args[i].getClass());
    Differences
    Expression1Expression2Difference
    tmpArgsargsVARIABLE_NAME_MISMATCH
    tmpArgsargsVARIABLE_NAME_MISMATCH
    "tmpArgs[""args["LITERAL_VALUE_MISMATCH
    6
    Interpreter.debug("args[" + i + "] = " + args[i] + " type = " + args[i].getClass());
    Precondition Violations (0)
    Row Violation