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 createModdnPanel()
|
Method name: JPanel createComparePanel()
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | VerticalPanel modPanel = new VerticalPanel();↵ | 1 | VerticalPanel cbindPanel = new VerticalPanel();↵ | |
2 | JPanel renamePanel = new JPanel(new BorderLayout(5, 0));↵ | 2 | JPanel cBPanel = new JPanel(new BorderLayout(5, 0));↵ | |
3 | JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn")); // $NON-NLS-1$↵ | 3 | JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$↵ | |
4 | labelmod.setLabelFor(modddn);↵ | 4 | cBlabel0.setLabelFor(comparedn);↵ | |
5 | renamePanel.add(labelmod, BorderLayout.WEST);↵ | 5 | cBPanel.add(cBlabel0, BorderLayout.WEST);↵ | |
6 | renamePanel.add(modddn, BorderLayout.CENTER); ↵ | 6 | cBPanel.add(comparedn, BorderLayout.CENTER); ↵ | |
7 | cbindPanel.add(cBPanel); ↵ | |||
7 | JPanel rename2Panel = new JPanel(new BorderLayout(5, 0));↵ | 8 | JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));↵ | |
8 | JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn")); // $NON-NLS-1$↵ | 9 | JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$↵ | |
9 | labelmod2.setLabelFor(newdn);↵ | 10 | cBlabel1.setLabelFor(↵ | |
10 | rename2↵ | 11 | comparefilt);↵ | |
11 | Panel.add(labelmod2, BorderLayout.WEST);↵ | 12 | cBPanel1.add(cBlabel1, BorderLayout.WEST);↵ | |
12 | rename2Panel.add(newdn, BorderLayout.CENTER);↵ | 13 | cBPanel1.add(comparefilt, BorderLayout.CENTER);↵ | |
13 | modPanel.add(renamePanel);↵ | 14 | cbindPanel.add(cBPanel1);↵ | |
14 | modPanel.add(rename2Panel);↵ | |||
15 | return modPanel; | 15 | return cbindPanel; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 79 |
Number of mapped statements | 14 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | VerticalPanel modPanel = new VerticalPanel(); |
| 1 | VerticalPanel cbindPanel = new VerticalPanel(); | |||||||||||||
2 | JPanel renamePanel = new JPanel(new BorderLayout(5, 0)); |
| 2 | JPanel cBPanel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||
3 | JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn")); |
| 3 | JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); | |||||||||||||
4 | labelmod.setLabelFor(modddn); |
| 4 | cBlabel0.setLabelFor(comparedn); | |||||||||||||
5 | renamePanel.add(labelmod, BorderLayout.WEST); |
| 5 | cBPanel.add(cBlabel0, BorderLayout.WEST); | |||||||||||||
6 | renamePanel.add(modddn, BorderLayout.CENTER); |
| 6 | cBPanel.add(comparedn, BorderLayout.CENTER); | |||||||||||||
7 | JPanel rename2Panel = new JPanel(new BorderLayout(5, 0)); |
| 8 | JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0)); | |||||||||||||
8 | JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn")); |
| 9 | JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); | |||||||||||||
9 | labelmod2.setLabelFor(newdn); |
| 10 | cBlabel1.setLabelFor(comparefilt); | |||||||||||||
10 | rename2Panel.add(labelmod2, BorderLayout.WEST); |
| 11 | cBPanel1.add(cBlabel1, BorderLayout.WEST); | |||||||||||||
11 | rename2Panel.add(newdn, BorderLayout.CENTER); |
| 12 | cBPanel1.add(comparefilt, BorderLayout.CENTER); | |||||||||||||
12 | modPanel.add(renamePanel); |
| 7 | cbindPanel.add(cBPanel); | |||||||||||||
13 | modPanel.add(rename2Panel); |
| 13 | cbindPanel.add(cBPanel1); | |||||||||||||
14 | return modPanel; |
| 14 | return cbindPanel; |
Row | Violation |
---|