VerticalPanel searchPanel = new VerticalPanel(); JPanel searchBPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("search_base")); // $NON-NLS-1$ label.setLabelFor(searchbase); searchBPanel.add(label, BorderLayout.WEST); searchBPanel.add(searchbase, BorderLayout.CENTER); JPanel searchFPanel = new JPanel(new BorderLayout(5, 0)); JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter")); // $NON-NLS-1$ label2.setLabelFor(searchfilter); searchFPanel.add(label2, BorderLayout.WEST); searchFPanel.add(searchfilter, BorderLayout.CENTER); searchPanel.add(searchBPanel); searchPanel.add(searchFPanel); return searchPanel;
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;
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 createSearchPanel() Method name: JPanel createComparePanel()
Number of AST nodes: 14 Number of AST nodes: 14
1
VerticalPanel searchPanel = new VerticalPanel();
1
VerticalPanel cbindPanel = new VerticalPanel();
2
		JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));
2
		JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
3
		JLabel label = new JLabel(JMeterUtils.getResString("search_base")); // $NON-NLS-1$
3
		JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$
4
		label.setLabelFor(searchbase);
4
		cBlabel0.setLabelFor(
5
		search
5
comparedn);
6
BPanel.add(label, BorderLayout.WEST);
6
		cBPanel.add(cBlabel0, BorderLayout.WEST);
7
		searchBPanel.add(searchbase, BorderLayout.CENTER);
7
		cBPanel.add(comparedn, BorderLayout.CENTER);
8
		JPanel searchF
8
		cbindPanel.add(cBPanel);
9
Panel = new JPanel(new BorderLayout(5, 0));
9
		JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
10
		JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter")); // $NON-NLS-1$
10
		JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$
11
		label2.setLabelFor(searchfilter);
11
		cBlabel1.setLabelFor(comparefilt);
12
		searchFPanel.add(label2, BorderLayout.WEST);
12
		cBPanel1.add(cBlabel1, BorderLayout.WEST);
13
		searchFPanel.add(searchfilter, BorderLayout.CENTER);
13
		cBPanel1.add(comparefilt, BorderLayout.CENTER);
14
		searchPanel.add(searchBPanel);
14
		cbindPanel.add(cBPanel1);
15
		searchPanel.add(searchFPanel);
16
		return searchPanel;
15
		return cbindPanel;
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 comparisons79
  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 searchPanel = new VerticalPanel();
    1
    VerticalPanel searchPanel = new VerticalPanel();
    1
    VerticalPanel cbindPanel = new VerticalPanel();
    Differences
    Expression1Expression2Difference
    searchPanelcbindPanelVARIABLE_NAME_MISMATCH
    1
    VerticalPanel cbindPanel = new VerticalPanel();
    2
    JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));
    2
    JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
    Differences
    Expression1Expression2Difference
    searchBPanelcBPanelVARIABLE_NAME_MISMATCH
    2
    JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
    3
    JLabel label = new JLabel(JMeterUtils.getResString("search_base"));
    3
    JLabel label = new JLabel(JMeterUtils.getResString("search_base"));
    3
    JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn"));
    Differences
    Expression1Expression2Difference
    labelcBlabel0VARIABLE_NAME_MISMATCH
    "search_base""entrydn"LITERAL_VALUE_MISMATCH
    3
    JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn"));
    4
    label.setLabelFor(searchbase);
    4
    label.setLabelFor(searchbase);
    4
    cBlabel0.setLabelFor(comparedn);
    Differences
    Expression1Expression2Difference
    searchbasecomparednVARIABLE_NAME_MISMATCH
    labelcBlabel0VARIABLE_NAME_MISMATCH
    4
    cBlabel0.setLabelFor(comparedn);
    5
    searchBPanel.add(label, BorderLayout.WEST);
    5
    searchBPanel.add(label, BorderLayout.WEST);
    5
    cBPanel.add(cBlabel0, BorderLayout.WEST);
    Differences
    Expression1Expression2Difference
    labelcBlabel0VARIABLE_NAME_MISMATCH
    searchBPanelcBPanelVARIABLE_NAME_MISMATCH
    5
    cBPanel.add(cBlabel0, BorderLayout.WEST);
    6
    searchBPanel.add(searchbase, BorderLayout.CENTER);
    6
    searchBPanel.add(searchbase, BorderLayout.CENTER);
    6
    cBPanel.add(comparedn, BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    searchbasecomparednVARIABLE_NAME_MISMATCH
    searchBPanelcBPanelVARIABLE_NAME_MISMATCH
    6
    cBPanel.add(comparedn, BorderLayout.CENTER);
    7
    JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));
    7
    JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));
    8
    JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
    Differences
    Expression1Expression2Difference
    searchFPanelcBPanel1VARIABLE_NAME_MISMATCH
    8
    JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
    8
    JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter"));
    8
    JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter"));
    9
    JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt"));
    Differences
    Expression1Expression2Difference
    label2cBlabel1VARIABLE_NAME_MISMATCH
    "search_filter""comparefilt"LITERAL_VALUE_MISMATCH
    9
    JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt"));
    9
    label2.setLabelFor(searchfilter);
    9
    label2.setLabelFor(searchfilter);
    10
    cBlabel1.setLabelFor(comparefilt);
    Differences
    Expression1Expression2Difference
    searchfiltercomparefiltVARIABLE_NAME_MISMATCH
    label2cBlabel1VARIABLE_NAME_MISMATCH
    10
    cBlabel1.setLabelFor(comparefilt);
    10
    searchFPanel.add(label2, BorderLayout.WEST);
    10
    searchFPanel.add(label2, BorderLayout.WEST);
    11
    cBPanel1.add(cBlabel1, BorderLayout.WEST);
    Differences
    Expression1Expression2Difference
    label2cBlabel1VARIABLE_NAME_MISMATCH
    searchFPanelcBPanel1VARIABLE_NAME_MISMATCH
    11
    cBPanel1.add(cBlabel1, BorderLayout.WEST);
    11
    searchFPanel.add(searchfilter, BorderLayout.CENTER);
    11
    searchFPanel.add(searchfilter, BorderLayout.CENTER);
    12
    cBPanel1.add(comparefilt, BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    searchfiltercomparefiltVARIABLE_NAME_MISMATCH
    searchFPanelcBPanel1VARIABLE_NAME_MISMATCH
    12
    cBPanel1.add(comparefilt, BorderLayout.CENTER);
    12
    searchPanel.add(searchBPanel);
    12
    searchPanel.add(searchBPanel);
    7
    cbindPanel.add(cBPanel);
    Differences
    Expression1Expression2Difference
    searchBPanelcBPanelVARIABLE_NAME_MISMATCH
    searchPanelcbindPanelVARIABLE_NAME_MISMATCH
    7
    cbindPanel.add(cBPanel);
    13
    searchPanel.add(searchFPanel);
    13
    searchPanel.add(searchFPanel);
    13
    cbindPanel.add(cBPanel1);
    Differences
    Expression1Expression2Difference
    searchFPanelcBPanel1VARIABLE_NAME_MISMATCH
    searchPanelcbindPanelVARIABLE_NAME_MISMATCH
    13
    cbindPanel.add(cBPanel1);
    14
    return searchPanel;
    14
    return searchPanel;
    14
    return cbindPanel;
    Differences
    Expression1Expression2Difference
    searchPanelcbindPanelVARIABLE_NAME_MISMATCH
    14
    return cbindPanel;
    Precondition Violations (0)
    Row Violation