VerticalPanel cbindPanel = new VerticalPanel(); JPanel cBPanel = new JPanel(new BorderLayout(5, 0)); JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$ cBlabel0.setLabelFor(comparedn); cBPanel.add(cBlabel0, BorderLayout.WEST); cBPanel.add(comparedn, BorderLayout.CENTER); cbindPanel.add(cBPanel); JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0)); JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$ cBlabel1.setLabelFor(comparefilt); cBPanel1.add(cBlabel1, BorderLayout.WEST); cBPanel1.add(comparefilt, BorderLayout.CENTER); cbindPanel.add(cBPanel1); return cbindPanel;
VerticalPanel modPanel = new VerticalPanel(); JPanel renamePanel = new JPanel(new BorderLayout(5, 0)); JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn")); // $NON-NLS-1$ labelmod.setLabelFor(modddn); renamePanel.add(labelmod, BorderLayout.WEST); renamePanel.add(modddn, BorderLayout.CENTER); JPanel rename2Panel = new JPanel(new BorderLayout(5, 0)); JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn")); // $NON-NLS-1$ labelmod2.setLabelFor(newdn); rename2Panel.add(labelmod2, BorderLayout.WEST); rename2Panel.add(newdn, BorderLayout.CENTER); modPanel.add(renamePanel); modPanel.add(rename2Panel); return modPanel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java
Method name: JPanel createComparePanel() Method name: JPanel createModdnPanel()
Number of AST nodes: 14 Number of AST nodes: 14
1
VerticalPanel cbindPanel = new VerticalPanel();
1
VerticalPanel modPanel = new VerticalPanel();
2
		JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
2
		JPanel renamePanel = new JPanel(new BorderLayout(5, 0));
3
		JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$
3
		JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn")); // $NON-NLS-1$
4
		cBlabel0.setLabelFor(comparedn);
4
		labelmod.setLabelFor(modddn);
5
		cBPanel.add(cBlabel0, BorderLayout.WEST);
5
		renamePanel.add(labelmod, BorderLayout.WEST);
6
		cBPanel.add(comparedn, BorderLayout.CENTER);
6
		renamePanel.add(modddn, BorderLayout.CENTER);
7
		cbindPanel.add(cBPanel);
8
		JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
7
		JPanel rename2Panel = new JPanel(new BorderLayout(5, 0));
9
		JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$
8
		JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn")); // $NON-NLS-1$
10
		cBlabel1.setLabelFor(comparefilt);
9
		labelmod2.setLabelFor(
11
		cB
10
newdn);
12
Panel1.add(cBlabel1, BorderLayout.WEST);
11
		rename2Panel.add(labelmod2, BorderLayout.WEST);
13
		cBPanel1.add(comparefilt, BorderLayout.CENTER);
12
		rename2Panel.add(newdn, BorderLayout.CENTER);
14
		cbin
15
dPanel.add(cBPanel1);
13
		modPanel.add(renamePanel);
14
		modPanel.add(rename2Panel);
16
		return cbindPanel;
15
		return modPanel;
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 declared in the same class
Number of node comparisons103
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements14
    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
    VerticalPanel cbindPanel = new VerticalPanel();
    1
    VerticalPanel cbindPanel = new VerticalPanel();
    1
    VerticalPanel modPanel = new VerticalPanel();
    Differences
    Expression1Expression2Difference
    cbindPanelmodPanelVARIABLE_NAME_MISMATCH
    1
    VerticalPanel modPanel = new VerticalPanel();
    2
    JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel renamePanel = new JPanel(new BorderLayout(5, 0));
    Differences
    Expression1Expression2Difference
    cBPanelrenamePanelVARIABLE_NAME_MISMATCH
    2
    JPanel renamePanel = new JPanel(new BorderLayout(5, 0));
    3
    JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn"));
    3
    JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn"));
    3
    JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn"));
    Differences
    Expression1Expression2Difference
    cBlabel0labelmodVARIABLE_NAME_MISMATCH
    "entrydn""modddn"LITERAL_VALUE_MISMATCH
    3
    JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn"));
    4
    cBlabel0.setLabelFor(comparedn);
    4
    cBlabel0.setLabelFor(comparedn);
    4
    labelmod.setLabelFor(modddn);
    Differences
    Expression1Expression2Difference
    comparednmodddnVARIABLE_NAME_MISMATCH
    cBlabel0labelmodVARIABLE_NAME_MISMATCH
    4
    labelmod.setLabelFor(modddn);
    5
    cBPanel.add(cBlabel0, BorderLayout.WEST);
    5
    cBPanel.add(cBlabel0, BorderLayout.WEST);
    5
    renamePanel.add(labelmod, BorderLayout.WEST);
    Differences
    Expression1Expression2Difference
    cBlabel0labelmodVARIABLE_NAME_MISMATCH
    cBPanelrenamePanelVARIABLE_NAME_MISMATCH
    5
    renamePanel.add(labelmod, BorderLayout.WEST);
    6
    cBPanel.add(comparedn, BorderLayout.CENTER);
    6
    cBPanel.add(comparedn, BorderLayout.CENTER);
    6
    renamePanel.add(modddn, BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    comparednmodddnVARIABLE_NAME_MISMATCH
    cBPanelrenamePanelVARIABLE_NAME_MISMATCH
    6
    renamePanel.add(modddn, BorderLayout.CENTER);
    7
    cbindPanel.add(cBPanel);
    7
    cbindPanel.add(cBPanel);
    12
    modPanel.add(renamePanel);
    Differences
    Expression1Expression2Difference
    cBPanelrenamePanelVARIABLE_NAME_MISMATCH
    cbindPanelmodPanelVARIABLE_NAME_MISMATCH
    12
    modPanel.add(renamePanel);
    8
    JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
    8
    JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
    7
    JPanel rename2Panel = new JPanel(new BorderLayout(5, 0));
    Differences
    Expression1Expression2Difference
    cBPanel1rename2PanelVARIABLE_NAME_MISMATCH
    7
    JPanel rename2Panel = new JPanel(new BorderLayout(5, 0));
    9
    JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt"));
    9
    JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt"));
    8
    JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn"));
    Differences
    Expression1Expression2Difference
    cBlabel1labelmod2VARIABLE_NAME_MISMATCH
    "comparefilt""newdn"LITERAL_VALUE_MISMATCH
    8
    JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn"));
    10
    cBlabel1.setLabelFor(comparefilt);
    10
    cBlabel1.setLabelFor(comparefilt);
    9
    labelmod2.setLabelFor(newdn);
    Differences
    Expression1Expression2Difference
    comparefiltnewdnVARIABLE_NAME_MISMATCH
    cBlabel1labelmod2VARIABLE_NAME_MISMATCH
    9
    labelmod2.setLabelFor(newdn);
    11
    cBPanel1.add(cBlabel1, BorderLayout.WEST);
    11
    cBPanel1.add(cBlabel1, BorderLayout.WEST);
    10
    rename2Panel.add(labelmod2, BorderLayout.WEST);
    Differences
    Expression1Expression2Difference
    cBlabel1labelmod2VARIABLE_NAME_MISMATCH
    cBPanel1rename2PanelVARIABLE_NAME_MISMATCH
    10
    rename2Panel.add(labelmod2, BorderLayout.WEST);
    12
    cBPanel1.add(comparefilt, BorderLayout.CENTER);
    12
    cBPanel1.add(comparefilt, BorderLayout.CENTER);
    11
    rename2Panel.add(newdn, BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    comparefiltnewdnVARIABLE_NAME_MISMATCH
    cBPanel1rename2PanelVARIABLE_NAME_MISMATCH
    11
    rename2Panel.add(newdn, BorderLayout.CENTER);
    13
    cbindPanel.add(cBPanel1);
    13
    cbindPanel.add(cBPanel1);
    13
    modPanel.add(rename2Panel);
    Differences
    Expression1Expression2Difference
    cBPanel1rename2PanelVARIABLE_NAME_MISMATCH
    cbindPanelmodPanelVARIABLE_NAME_MISMATCH
    13
    modPanel.add(rename2Panel);
    14
    return cbindPanel;
    14
    return cbindPanel;
    14
    return modPanel;
    Differences
    Expression1Expression2Difference
    cbindPanelmodPanelVARIABLE_NAME_MISMATCH
    14
    return modPanel;
    Precondition Violations (0)
    Row Violation