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 createSearchPanel()
|
|||
Number of AST nodes: 14 | Number of AST nodes: 15 | |||
1 | VerticalPanel cbindPanel = new VerticalPanel();↵ | 1 | VerticalPanel searchPanel = new VerticalPanel();↵ | |
2 | JPanel cBPanel = new JPanel(new BorderLayout(5, 0));↵ | 2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));↵ | |
3 | JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$↵ | 3 | JLabel label = new JLabel(JMeterUtils.getResString("searchbase")); // $NON-NLS-1$↵ | |
4 | cBlabel0.setLabelFor(comparedn);↵ | 4 | label.setLabelFor(↵ | |
5 | c↵ | 5 | searchbase);↵ | |
6 | BPanel.add(cBlabel0, BorderLayout.WEST);↵ | 6 | searchBPanel.add(label, BorderLayout.WEST);↵ | |
7 | cBPanel.add(comparedn, BorderLayout.CENTER); ↵ | 7 | searchBPanel.add(searchbase, BorderLayout.CENTER); ↵ | |
8 | cbindPanel.add(cBPanel); ↵ | |||
9 | JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));↵ | 8 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));↵ | |
10 | JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$↵ | 9 | JLabel label20 = new JLabel(JMeterUtils.getResString("searchfilter")); // $NON-NLS-1$↵ | |
11 | cBlabel1.setLabelFor(comparefilt);↵ | 10 | label20.setLabelFor(searchfilter);↵ | |
12 | cBPanel1.add(cBlabel1, BorderLayout.WEST);↵ | 11 | searchFPanel.add(label20, BorderLayout.WEST);↵ | |
13 | cBPanel1.add(comparefilt, BorderLayout.CENTER);↵ | 12 | searchFPanel.add(searchfilter, BorderLayout.CENTER);↵ | |
14 | cbindPanel.add(cB↵ | |||
13 | searchPanel.add(searchBPanel);↵ | |||
14 | searchPanel.add(searchFPanel);↵ | |||
15 | Panel1);↵ | 15 | searchPanel.add(createSCPanel());↵ | |
16 | ↵ | |||
16 | return cbindPanel; | 17 | return searchPanel; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 107 |
Number of mapped statements | 14 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | VerticalPanel cbindPanel = new VerticalPanel(); |
| 1 | VerticalPanel searchPanel = new VerticalPanel(); | |||||||||||||
2 | JPanel cBPanel = new JPanel(new BorderLayout(5, 0)); |
| 2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||
3 | JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); |
| 3 | JLabel label = new JLabel(JMeterUtils.getResString("searchbase")); | |||||||||||||
4 | cBlabel0.setLabelFor(comparedn); |
| 4 | label.setLabelFor(searchbase); | |||||||||||||
5 | cBPanel.add(cBlabel0, BorderLayout.WEST); |
| 5 | searchBPanel.add(label, BorderLayout.WEST); | |||||||||||||
6 | cBPanel.add(comparedn, BorderLayout.CENTER); |
| 6 | searchBPanel.add(searchbase, BorderLayout.CENTER); | |||||||||||||
7 | cbindPanel.add(cBPanel); |
| 12 | searchPanel.add(searchBPanel); | |||||||||||||
8 | JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0)); |
| 7 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||
9 | JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); |
| 8 | JLabel label20 = new JLabel(JMeterUtils.getResString("searchfilter")); | |||||||||||||
10 | cBlabel1.setLabelFor(comparefilt); |
| 9 | label20.setLabelFor(searchfilter); | |||||||||||||
11 | cBPanel1.add(cBlabel1, BorderLayout.WEST); |
| 10 | searchFPanel.add(label20, BorderLayout.WEST); | |||||||||||||
12 | cBPanel1.add(comparefilt, BorderLayout.CENTER); |
| 11 | searchFPanel.add(searchfilter, BorderLayout.CENTER); | |||||||||||||
13 | cbindPanel.add(cBPanel1); |
| 13 | searchPanel.add(searchFPanel); | |||||||||||||
| 14 | searchPanel.add(createSCPanel()); | |||||||||||||||
14 | return cbindPanel; |
| 15 | return searchPanel; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables searchPanel |