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/LdapConfigGui.java | |||
Method name: JPanel createSearchPanel()
|
Method name: JPanel createSearchPanel()
|
|||
Number of AST nodes: 15 | Number of AST nodes: 14 | |||
1 | VerticalPanel searchPanel = new VerticalPanel();↵ | 1 | VerticalPanel searchPanel = new VerticalPanel();↵ | |
2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));↵ | 2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));↵ | |
3 | JLabel label = new JLabel(JMeterUtils.getResString("searchbase")); // $NON-NLS-1$↵ | 3 | JLabel label = new JLabel(JMeterUtils.getResString("search_base")); // $NON-NLS-1$↵ | |
4 | label.setLabelFor(searchbase);↵ | 4 | label.setLabelFor(searchbase);↵ | |
5 | searchBPanel.add(label, BorderLayout.WEST);↵ | 5 | searchBPanel.add(label, BorderLayout.WEST);↵ | |
6 | searchBPanel.add(searchbase, BorderLayout.CENTER);↵ | 6 | searchBPanel.add(searchbase, BorderLayout.CENTER);↵ | |
7 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));↵ | 7 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));↵ | |
8 | JLabel label20 = new JLabel(JMeterUtils.getResString("searchfilter")); // $NON-NLS-1$↵ | 8 | JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter")); // $NON-NLS-1$↵ | |
9 | label20.setLabelFor(searchfilter);↵ | 9 | label2.setLabelFor(searchfilter);↵ | |
10 | searchFPanel.add(label20, BorderLayout.WEST);↵ | 10 | searchFPanel.add(label2, BorderLayout.WEST);↵ | |
11 | searchFPanel.add(searchfilter, BorderLayout.CENTER);↵ | 11 | searchFPanel.add(searchfilter, BorderLayout.CENTER);↵ | |
12 | searchPanel.add(searchBPanel);↵ | 12 | searchPanel.add(searchBPanel);↵ | |
13 | searchPanel.add(searchFPanel);↵ | 13 | searchPanel.add(searchFPanel);↵ | |
14 | searchPanel.add(createSCPanel());↵ | 14 | ↵ | |
15 | ↵ | |||
16 | return searchPanel; | 15 |
| |
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 in different classes having the same super class |
Number of node comparisons | 86 |
Number of mapped statements | 14 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | VerticalPanel searchPanel = new VerticalPanel(); | 1 | VerticalPanel searchPanel = new VerticalPanel(); | ||||||||||||||
2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0)); | 2 | JPanel searchBPanel = new JPanel(new BorderLayout(5, 0)); | ||||||||||||||
3 | JLabel label = new JLabel(JMeterUtils.getResString("searchbase")); |
| 3 | JLabel label = new JLabel(JMeterUtils.getResString("search_base")); | |||||||||||||
4 | label.setLabelFor(searchbase); | 4 | label.setLabelFor(searchbase); | ||||||||||||||
5 | searchBPanel.add(label, BorderLayout.WEST); | 5 | searchBPanel.add(label, BorderLayout.WEST); | ||||||||||||||
6 | searchBPanel.add(searchbase, BorderLayout.CENTER); | 6 | searchBPanel.add(searchbase, BorderLayout.CENTER); | ||||||||||||||
7 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0)); | 7 | JPanel searchFPanel = new JPanel(new BorderLayout(5, 0)); | ||||||||||||||
8 | JLabel label20 = new JLabel(JMeterUtils.getResString("searchfilter")); |
| 8 | JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter")); | |||||||||||||
9 | label20.setLabelFor(searchfilter); |
| 9 | label2.setLabelFor(searchfilter); | |||||||||||||
10 | searchFPanel.add(label20, BorderLayout.WEST); |
| 10 | searchFPanel.add(label2, BorderLayout.WEST); | |||||||||||||
11 | searchFPanel.add(searchfilter, BorderLayout.CENTER); | 11 | searchFPanel.add(searchfilter, BorderLayout.CENTER); | ||||||||||||||
12 | searchPanel.add(searchBPanel); | 12 | searchPanel.add(searchBPanel); | ||||||||||||||
13 | searchPanel.add(searchFPanel); | 13 | searchPanel.add(searchFPanel); | ||||||||||||||
14 | searchPanel.add(createSCPanel()); | | |||||||||||||||
15 | return searchPanel; | 14 | return searchPanel; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables searchPanel , while Clone fragment #2 returns variables |