super(); mTextField = createTextField(size); mLabel = new JLabel(pLabel); mLabel.setLabelFor(mTextField); init();
JScrollPane treeP = new JScrollPane(tree); treeP.setMinimumSize(new Dimension(100, 0)); return treeP;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/JLabeledTextField.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/ReportMainFrame.java
Method name: void JLabeledTextField(String, int) Method name: JScrollPane createTreePanel()
Number of AST nodes: 5 Number of AST nodes: 3
1
super();
2
		mTextField = createTextField(size);
3
		mLabel = new JLabel(pLabel);
4
		mLabel.setLabelFor(mTextField);
5
		init()
1
JScrollPane treeP = new JScrollPane(tree);
2
        treeP.setMinimumSize(new Dimension(100, 0));
6
;
3
        return treeP;
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                                          
    1
    JScrollPane treeP = new JScrollPane(tree);
    1
    super();
                          
    2
    mTextField = createTextField(size);
                                                                            
                                    
    3
    return treeP;
    Preondition Violations
    Unmatched return treeP;
    3
    return treeP;
    3
    mLabel = new JLabel(pLabel);
                                                              
    4
    mLabel.setLabelFor(mTextField);
                                                                        
    5
    init();
    5
    init();
    2
    treeP.setMinimumSize(new Dimension(100, 0));
    Differences
    Expression1Expression2Difference
    initsetMinimumSizeMETHOD_INVOCATION_NAME_MISMATCH
    init()treeP.setMinimumSize(new Dimension(100,0))ARGUMENT_NUMBER_MISMATCH
    treePMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression treeP.setMinimumSize(new Dimension(100,0)) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression treeP.setMinimumSize(new Dimension(100,0)) is a void method call, and thus it cannot be parameterized
    2
    treeP.setMinimumSize(new Dimension(100, 0));
    Precondition Violations (5)
    Row Violation
    1Unmatched return treeP;
    2Expression init() is a void method call, and thus it cannot be parameterized
    3Expression treeP.setMinimumSize(new Dimension(100,0)) is a void method call, and thus it cannot be parameterized
    4Expression init() is a void method call, and thus it cannot be parameterized
    5Expression treeP.setMinimumSize(new Dimension(100,0)) is a void method call, and thus it cannot be parameterized