this.clearFiles(); for (int idx=0; idx < files.length; idx++) { addFilename(files[idx]); }
for (int i = 0; i < nodes.length; i++) { ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FileListPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportDragNDrop.java
Method name: void setFiles(String[]) Method name: void removeNodesFromParents(ReportTreeNode[])
Number of AST nodes: 3 Number of AST nodes: 2
1
this.clearFiles();
2
        for (int idx=0; idx < files.length; idx++) {
1
for (int i = 0; i < nodes.length; i++) {
3
            addFilename(files[idx]);
2
			ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]);
4
        }
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.1
Clones locationClones are in different classes
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    this.clearFiles();
                                              
    2
    for (int idx = 0; idx < files.length; idx++)
    2
    for (int idx = 0; idx < files.length; idx++)
    1
    for (int i = 0; i < nodes.length; i++)
    Differences
    Expression1Expression2Difference
    idxiVARIABLE_NAME_MISMATCH
    idxiVARIABLE_NAME_MISMATCH
    filesnodesVARIABLE_NAME_MISMATCH
    idxiVARIABLE_NAME_MISMATCH
    1
    for (int i = 0; i < nodes.length; i++)
    3
    addFilename(files[idx]);
    3
    addFilename(files[idx]);
    2
    ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]);
    Differences
    Expression1Expression2Difference
    addFilenameremoveNodeFromParentMETHOD_INVOCATION_NAME_MISMATCH
    filesnodesVARIABLE_NAME_MISMATCH
    idxiVARIABLE_NAME_MISMATCH
    ReportGuiPackage.getInstance().getTreeModel()MISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression addFilename(files[idx]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addFilename(files[idx]) is a void method call, and thus it cannot be parameterized
    Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) is a void method call, and thus it cannot be parameterized
    Expression addFilename(files[idx]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addFilename(files[idx]) is a void method call, and thus it cannot be parameterized
    Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) is a void method call, and thus it cannot be parameterized
    2
    ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]);
    Precondition Violations (8)
    Row Violation
    1Expression addFilename(files[idx]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression addFilename(files[idx]) is a void method call, and thus it cannot be parameterized
    4Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) is a void method call, and thus it cannot be parameterized
    5Expression addFilename(files[idx]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression addFilename(files[idx]) is a void method call, and thus it cannot be parameterized
    8Expression ReportGuiPackage.getInstance().getTreeModel().removeNodeFromParent(nodes[i]) is a void method call, and thus it cannot be parameterized