JPanel addPanel = new JPanel(new BorderLayout(5, 0)); JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("entry_dn")); // $NON-NLS-1$ label.setLabelFor(add); addInnerPanel.add(label, BorderLayout.WEST); addInnerPanel.add(add, BorderLayout.CENTER); addPanel.add(addInnerPanel, BorderLayout.NORTH); addPanel.add(tableAddPanel, BorderLayout.CENTER); return addPanel;
JPanel addPanel = new JPanel(new BorderLayout(5, 0)); JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$ label.setLabelFor(add); addInnerPanel.add(label, BorderLayout.WEST); addInnerPanel.add(add, BorderLayout.CENTER); addPanel.add(addInnerPanel, BorderLayout.NORTH); addPanel.add(tableAddPanel, BorderLayout.CENTER); return addPanel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java
Method name: JPanel createAddPanel() Method name: JPanel createAddPanel()
Number of AST nodes: 9 Number of AST nodes: 9
1
JPanel addPanel = new JPanel(new BorderLayout(5, 0));
1
JPanel addPanel = new JPanel(new BorderLayout(5, 0));
2
		JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0));
2
		JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0));
3
		JLabel label = new JLabel(JMeterUtils.getResString("entry_dn")); // $NON-NLS-1$
3
		JLabel label = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$
4
		label.setLabelFor(add);
4
		label.setLabelFor(add);
5
		addInnerPanel.add(label, BorderLayout.WEST);
5
		addInnerPanel.add(label, BorderLayout.WEST);
6
		addInnerPanel.add(add, BorderLayout.CENTER);
6
		addInnerPanel.add(add, BorderLayout.CENTER);
7
		addPanel.add(addInnerPanel, BorderLayout.NORTH);
7
		addPanel.add(addInnerPanel, BorderLayout.NORTH);
8
		addPanel.add(tableAddPanel, BorderLayout.CENTER);
8
		addPanel.add(tableAddPanel, BorderLayout.CENTER);
9
		return addPanel;
9
		return addPanel;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
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 comparisons36
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    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
    JPanel addPanel = new JPanel(new BorderLayout(5, 0));
    1
    JPanel addPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel addInnerPanel = new JPanel(new BorderLayout(5, 0));
    3
    JLabel label = new JLabel(JMeterUtils.getResString("entry_dn"));
    3
    JLabel label = new JLabel(JMeterUtils.getResString("entry_dn"));
    3
    JLabel label = new JLabel(JMeterUtils.getResString("entrydn"));
    Differences
    Expression1Expression2Difference
    "entry_dn""entrydn"LITERAL_VALUE_MISMATCH
    3
    JLabel label = new JLabel(JMeterUtils.getResString("entrydn"));
    4
    label.setLabelFor(add);
    4
    label.setLabelFor(add);
    5
    addInnerPanel.add(label, BorderLayout.WEST);
    5
    addInnerPanel.add(label, BorderLayout.WEST);
    6
    addInnerPanel.add(add, BorderLayout.CENTER);
    6
    addInnerPanel.add(add, BorderLayout.CENTER);
    7
    addPanel.add(addInnerPanel, BorderLayout.NORTH);
    7
    addPanel.add(addInnerPanel, BorderLayout.NORTH);
    8
    addPanel.add(tableAddPanel, BorderLayout.CENTER);
    8
    addPanel.add(tableAddPanel, BorderLayout.CENTER);
    9
    return addPanel;
    9
    return addPanel;
    Precondition Violations (0)
    Row Violation