File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java | |||
Method name: void layoutComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (isPopAccount()) {↵ | 1 | if (!isPopAccount()) {↵ | |
2 | c.weightx = 0.1;↵ | 2 | c.weightx = 0.1;↵ | |
3 | c.gridwidth = GridBagConstraints.RELATIVE;↵ | 3 | c.gridwidth = GridBagConstraints.RELATIVE;↵ | |
4 | layout.setConstraints(inboxLabel, c);↵ | 4 | layout.setConstraints(trashLabel, c);↵ | |
5 | folderPanel.add(inboxLabel);↵ | 5 | folderPanel.add(trashLabel);↵ | |
6 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 6 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
7 | c.weightx = 0.9;↵ | 7 | c.weightx = 0.9;↵ | |
8 | layout.setConstraints(inboxButton, c);↵ | 8 | layout.setConstraints(trashButton, c);↵ | |
9 | folderPanel.add(inboxButton);↵ | 9 | folderPanel.add(trashButton);↵ | |
10 | } | 10 |
| |
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 81 |
Number of mapped statements | 9 |
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) | 13.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | if (isPopAccount()) |
| 56 | if (!isPopAccount()) | ||||||||||
24 | c.weightx = 0.1; | 57 | c.weightx = 0.1; | |||||||||||
25 | c.gridwidth = GridBagConstraints.RELATIVE; | 58 | c.gridwidth = GridBagConstraints.RELATIVE; | |||||||||||
26 | layout.setConstraints(inboxLabel, c); |
| 59 | layout.setConstraints(trashLabel, c); | ||||||||||
27 | folderPanel.add(inboxLabel); |
| 60 | folderPanel.add(trashLabel); | ||||||||||
28 | c.gridwidth = GridBagConstraints.REMAINDER; | 61 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
29 | c.weightx = 0.9; | 62 | c.weightx = 0.9; | |||||||||||
30 | layout.setConstraints(inboxButton, c); |
| 63 | layout.setConstraints(trashButton, c); | ||||||||||
31 | folderPanel.add(inboxButton); |
| 64 | folderPanel.add(trashButton); |
Row | Violation |
---|