FormLayout layout = new FormLayout("fill:pref", // columns "pref, 3dlu, pref, 3dlu, pref"); // rows CellConstraints cc = new CellConstraints(); JPanel buttonPanel = new JPanel(layout); findButton.addActionListener(this); findButton.setActionCommand("FIND");
FormLayout layout = new FormLayout("fill:pref", // columns "pref, 3dlu, pref, 3dlu, pref, 3dlu, pref"); // rows CellConstraints cc = new CellConstraints(); JPanel buttonPanel = new JPanel(layout); findButton.addActionListener(this); findButton.setActionCommand("FIND");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindReplaceDialog.java
Method name: JPanel createButtonPanel() Method name: JPanel createButtonPanel()
Number of AST nodes: 5 Number of AST nodes: 5
1
FormLayout layout = new FormLayout("fill:pref", // columns 
1
FormLayout layout = new FormLayout("fill:pref", // columns 
2
			"pref, 3dlu, pref, 3dlu, pref"); // rows
2
			"pref, 3dlu, pref, 3dlu, pref, 3dlu, pref"); // rows
3
		CellConstraints cc = new CellConstraints();
3
		CellConstraints cc = new CellConstraints();
4
		JPanel buttonPanel = new JPanel(layout);
4
		JPanel buttonPanel = new JPanel(layout);
5
		
5
		
6
		
6
		
7
		findButton.addActionListener(this);
7
		findButton.addActionListener(this);
8
		findButton.setActionCommand("FIND");
8
		findButton.setActionCommand("FIND");
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    FormLayout layout = new FormLayout("fill:pref", "pref, 3dlu, pref, 3dlu, pref");
    1
    FormLayout layout = new FormLayout("fill:pref", "pref, 3dlu, pref, 3dlu, pref");
    1
    FormLayout layout = new FormLayout("fill:pref", "pref, 3dlu, pref, 3dlu, pref, 3dlu, pref");
    Differences
    Expression1Expression2Difference
    "pref, 3dlu, pref, 3dlu, pref""pref, 3dlu, pref, 3dlu, pref, 3dlu, pref"LITERAL_VALUE_MISMATCH
    1
    FormLayout layout = new FormLayout("fill:pref", "pref, 3dlu, pref, 3dlu, pref, 3dlu, pref");
    2
    CellConstraints cc = new CellConstraints();
    2
    CellConstraints cc = new CellConstraints();
    3
    JPanel buttonPanel = new JPanel(layout);
    3
    JPanel buttonPanel = new JPanel(layout);
    4
    findButton.addActionListener(this);
    4
    findButton.addActionListener(this);
    5
    findButton.setActionCommand("FIND");
    5
    findButton.setActionCommand("FIND");
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables cc, buttonPanel , while Clone fragment #2 returns variables cc, buttonPanel