for (int i = 0; i < args.length; i++) { LOG.info("arg[" + i + "]=" + args[i]); }
for (int i = 0; i < args.length; i++) { LOG.severe("argument[" + i + "]=" + args[i]); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/main/Bootstrap.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/ExternalClassLoader.java
Method name: void run(String[]) Method name: Object instanciate(String, Object[])
Number of AST nodes: 2 Number of AST nodes: 2
1
for (int i = 0; i < args.length; i++) {
1
for (int i = 0; i < args.length; i++) {
2
			LOG.info("arg[" + i + "]=" + args[i]);
2
				LOG.severe("argument[" + i + "]=" + args[i]);
3
		}
3
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    18
    for (int i = 0; i < args.length; i++)
    18
    for (int i = 0; i < args.length; i++)
    8
    for (int i = 0; i < args.length; i++)
    Differences
    Expression1Expression2Difference
    java.lang.String[]java.lang.Object[]VARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.lang.String[] of variable args does not match with type java.lang.Object[] of variable args
    • Make classes java.lang.String[] and java.lang.Object[] extend a common superclass
    8
    for (int i = 0; i < args.length; i++)
                                                                                                  
    9
    LOG.severe("argument[" + i + "]=" + args[i]);
    Preondition Violations
    Unmatched statement LOG.severe("argument[" + i + "]="+ args[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    9
    LOG.severe("argument[" + i + "]=" + args[i]);
    19
    LOG.info("arg[" + i + "]=" + args[i]);
    19
    LOG.info("arg[" + i + "]=" + args[i]);
    Preondition Violations
    Unmatched statement LOG.info("arg[" + i + "]="+ args[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                      
    Precondition Violations (3)
    Row Violation
    1Type java.lang.String[] of variable args does not match with type java.lang.Object[] of variable args
    2Unmatched statement LOG.severe("argument[" + i + "]="+ args[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3Unmatched statement LOG.info("arg[" + i + "]="+ args[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted