if (log.isDebugEnabled()) { for (int i = 0; i < strPathsOrJars.length; i++) { log.debug("strPathsOrJars[" + i + "] : " + strPathsOrJars[i]); } }
while (d.next()) { for (int count = 0; count < headers.length; count++) { addColumnValue(headers[count], d.getColumnValue(headers[count])); } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/reflect/ClassFinder.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java
Method name: List getClasspathMatches(String[]) Method name: void append(Data)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (log.isDebugEnabled()) {
1
while (d.next()) {
2
			for (int i = 0; i < strPathsOrJars.length; i++) {
2
				for (int count = 0; count < headers.length; count++) {
3
				log.debug("strPathsOrJars[" + i + "] : " + strPathsOrJars[i]);
3
					addColumnValue(headers[count], d.getColumnValue(headers[count]));
4
			}
4
				}
5
		}
5
			}
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 comparisons5
  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)1.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    for (int i = 0; i < strPathsOrJars.length; i++)
    4
    for (int i = 0; i < strPathsOrJars.length; i++)
    13
    for (int count = 0; count < headers.length; count++)
    Differences
    Expression1Expression2Difference
    icountVARIABLE_NAME_MISMATCH
    icountVARIABLE_NAME_MISMATCH
    strPathsOrJarsheadersVARIABLE_NAME_MISMATCH
    icountVARIABLE_NAME_MISMATCH
    13
    for (int count = 0; count < headers.length; count++)
    5
    log.debug("strPathsOrJars[" + i + "] : " + strPathsOrJars[i]);
    5
    log.debug("strPathsOrJars[" + i + "] : " + strPathsOrJars[i]);
    Preondition Violations
    Unmatched statement log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                    
                                                                                                                                            
    14
    addColumnValue(headers[count], d.getColumnValue(headers[count]));
    Preondition Violations
    Unmatched statement addColumnValue(headers[count],d.getColumnValue(headers[count])); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    14
    addColumnValue(headers[count], d.getColumnValue(headers[count]));
    Precondition Violations (3)
    Row Violation
    1Unmatched statement log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement addColumnValue(headers[count],d.getColumnValue(headers[count])); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero