File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java | |||
Method name: void layoutComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);↵ | 1 | b.append(authenticationLabel, authenticationComboBox, checkAuthMethods);↵ | |
2 | ↵ | 2 | // b.nextLine();↵ | |
3 | // b.append(loginLabel, loginTextField);↵ | |||
3 | builder.append(panel, 3);↵ | 4 | builder.append(panel, 5);↵ | |
4 | builder.nextLine();↵ | 5 | builder.nextLine();↵ | |
6 | // builder.setLeadingColumnOffset(1);↵ | |||
5 | builder.append(secureCheckBox, 3);↵ | 7 | builder.append(secureCheckBox, 6);↵ | |
6 | builder.nextLine();↵ | 8 | builder.nextLine();↵ | |
7 | JPanel panel2 = new JPanel();↵ | 9 | JPanel panel2 = new JPanel();↵ | |
8 | FormLayout l2 = new FormLayout("default, 3dlu, left:pref",↵ | 10 | FormLayout l2 = new FormLayout("default, 3dlu, left:pref",↵ | |
9 | // 2 columns↵ | 11 | // 2 columns↵ | |
10 | "fill:default:grow"); // rows are added dynamically (no need↵ | 12 | "fill:default:grow"); // rows are added dynamically (no need↵ | |
11 | // to↵ | 13 | // to↵ | |
12 | // define them here)↵ | 14 | // define them here)↵ | |
13 | // create a form builder↵ | 15 | // create a form builder↵ | |
14 | DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);↵ | 16 | DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2);↵ | |
15 | b2.setRowGroupingEnabled(true); | 17 |
| |
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 | 30 |
Number of mapped statements | 9 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20 | b.append(authenticationLabel, authenticationComboBox, checkAuthMethods); | 24 | b.append(authenticationLabel, authenticationComboBox, checkAuthMethods); | |||||||||||
21 | builder.append(panel, 3); |
| 25 | builder.append(panel, 5); | ||||||||||
22 | builder.nextLine(); | 26 | builder.nextLine(); | |||||||||||
23 | builder.append(secureCheckBox, 3); |
| 27 | builder.append(secureCheckBox, 6); | ||||||||||
24 | builder.nextLine(); | 26 | builder.nextLine(); | |||||||||||
| 28 | builder.nextLine(); | ||||||||||||
25 | JPanel panel2 = new JPanel(); | 29 | JPanel panel2 = new JPanel(); | |||||||||||
26 | FormLayout l2 = new FormLayout("default, 3dlu, left:pref", "fill:default:grow"); | 30 | FormLayout l2 = new FormLayout("default, 3dlu, left:pref", "fill:default:grow"); | |||||||||||
27 | DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2); | 31 | DefaultFormBuilder b2 = new DefaultFormBuilder(l2, panel2); | |||||||||||
28 | b2.setRowGroupingEnabled(true); | 32 | b2.setRowGroupingEnabled(true); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables b2, panel2 , while Clone fragment #2 returns variables panel2 |