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 statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.8
    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]);
    14
    addColumnValue(headers[count], d.getColumnValue(headers[count]));
    Differences
    Expression1Expression2Difference
    debugaddColumnValueMETHOD_INVOCATION_NAME_MISMATCH
    log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i])addColumnValue(headers[count],d.getColumnValue(headers[count]))ARGUMENT_NUMBER_MISMATCH
    logMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) is a void method call, and thus it cannot be parameterized
    Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) is a void method call, and thus it cannot be parameterized
    Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) is a void method call, and thus it cannot be parameterized
    Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) is a void method call, and thus it cannot be parameterized
    14
    addColumnValue(headers[count], d.getColumnValue(headers[count]));
    Precondition Violations (8)
    Row Violation
    1Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) is a void method call, and thus it cannot be parameterized
    4Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) is a void method call, and thus it cannot be parameterized
    5Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression log.debug("strPathsOrJars[" + i + "] : "+ strPathsOrJars[i]) is a void method call, and thus it cannot be parameterized
    8Expression addColumnValue(headers[count],d.getColumnValue(headers[count])) is a void method call, and thus it cannot be parameterized