File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java | |||
Method name: void addLayoutComponent(Component, Object)
|
Method name: void addLayoutComponent(Component, Object)
|
|||
Number of AST nodes: 17 | Number of AST nodes: 9 | |||
1 | center = comp;↵ | |||
2 | else if(TOP_TOOLBARS.equals(cons))↵ | |||
3 | topToolbars = comp;↵ | |||
4 | else if(BOTTOM_TOOLBARS.equals(cons))↵ | |||
1 | bottomToolbars = comp;↵ | 5 | bottomToolbars = comp;↵ | |
2 | else if(TOP.equals(cons))↵ | 6 | else if(TOP.equals(cons))↵ | |
3 | top = comp;↵ | 7 | top = comp;↵ | |
4 | else if(LEFT.equals(cons))↵ | 8 | else if(LEFT.equals(cons))↵ | |
5 | left = comp;↵ | 9 | left = comp;↵ | |
6 | else if(BOTTOM.equals(cons))↵ | 10 | else if(BOTTOM.equals(cons))↵ | |
7 | bottom = comp;↵ | 11 | bottom = comp;↵ | |
8 | else if(RIGHT.equals(cons))↵ | 12 | else if(RIGHT.equals(cons))↵ | |
9 | right = comp;↵ | 13 | right = comp;↵ | |
10 | else if(TOP_BUTTONS.equals(cons))↵ | 14 | else if(TOP_BUTTONS.equals(cons))↵ | |
11 | topButtons = comp;↵ | 15 | topButtons = comp;↵ | |
12 | else if(LEFT_BUTTONS.equals(cons))↵ | 16 | else if(LEFT_BUTTONS.equals(cons))↵ | |
13 | leftButtons = comp;↵ | 17 |
| |
14 | else if(BOTTOM_BUTTONS.equals(cons))↵ | |||
15 | bottomButtons = comp;↵ | |||
16 | else if(RIGHT_BUTTONS.equals(cons))↵ | |||
17 | rightButtons = comp; | |||
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 the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | bottomToolbars = comp; |
| 2 | center = comp; |
Row | Violation |
---|---|
1 | Expression bottomToolbars is a field being modified, and thus it cannot be parameterized |
2 | Expression center is a field being modified, and thus it cannot be parameterized |