File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/search/SearchFrame.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/FilterDialog.java | |||
Method name: JPanel createPanel1()
|
Method name: JPanel createPanel1()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 7 | |||
1 | JPanel jpanel1 = new JPanel();↵ | 1 | JPanel jpanel1 = new JPanel();↵ | |
2 | FormLayout formlayout1 = new FormLayout(↵ | 2 | FormLayout formlayout1 = new FormLayout(↵ | |
3 | "LEFT:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE",↵ | 3 | "LEFT:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0)",↵ | |
4 | "FILL:DEFAULT:NONE");↵ | 4 | "FILL:DEFAULT:NONE");↵ | |
5 | CellConstraints cc = new CellConstraints();↵ | 5 | CellConstraints cc = new CellConstraints();↵ | |
6 | jpanel1.setLayout(formlayout1);↵ | 6 | jpanel1.setLayout(formlayout1);↵ | |
7 | jpanel1.add(folderLabel, cc.xy(1, 1));↵ | 7 | jpanel1.add(nameLabel, cc.xy(1, 1));↵ | |
8 | jpanel1.add(selectButton, cc.xy(3, 1));↵ | 8 | jpanel1.add(↵ | |
9 | jpanel1.add(includeSubfolderButton, cc.xy(5, 1));↵ | 9 | nameTextField, cc.xy(3, 1));↵ | |
10 | return jpanel1; | 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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 21 |
Number of mapped statements | 7 |
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 | JPanel jpanel1 = new JPanel(); | 1 | JPanel jpanel1 = new JPanel(); | ||||||||||||||
2 | FormLayout formlayout1 = new FormLayout("LEFT:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "FILL:DEFAULT:NONE"); |
| 2 | FormLayout formlayout1 = new FormLayout("LEFT:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0)", "FILL:DEFAULT:NONE"); | |||||||||||||
3 | CellConstraints cc = new CellConstraints(); | 3 | CellConstraints cc = new CellConstraints(); | ||||||||||||||
4 | jpanel1.setLayout(formlayout1); | 4 | jpanel1.setLayout(formlayout1); | ||||||||||||||
5 | jpanel1.add(folderLabel, cc.xy(1, 1)); |
| 5 | jpanel1.add(nameLabel, cc.xy(1, 1)); | |||||||||||||
6 | jpanel1.add(selectButton, cc.xy(3, 1)); |
| 6 | jpanel1.add(nameTextField, cc.xy(3, 1)); | |||||||||||||
7 | jpanel1.add(includeSubfolderButton, cc.xy(5, 1)); |
| | ||||||||||||||
8 | return jpanel1; | 7 | return jpanel1; |
Row | Violation |
---|---|
1 | Unmatched statement jpanel1.add(includeSubfolderButton,cc.xy(5,1)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |