File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | |||
Method name: void addLayoutComponent(Component, Object)
|
Method name: void addLayoutComponent(String, Component)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | if(RIGHT.equals(cons))↵ | 1 | if(name.equals(CENTER))↵ | |
2 | right = comp;↵ | 2 | center = comp;↵ | |
3 | else if(TOP_BUTTONS.equals(cons))↵ | 3 | else if(name.equals(RIGHT))↵ | |
4 | topButtons = comp;↵ | 4 | right = comp;↵ | |
5 | else if(LEFT_BUTTONS.equals(cons))↵ | 5 | else if(name.equals(LEFT))↵ | |
6 | leftButtons = comp;↵ | 6 | left = comp;↵ | |
7 | else if(BOTTOM_BUTTONS.equals(cons))↵ | 7 | else if(name.equals(BOTTOM))↵ | |
8 | bottomButtons = comp;↵ | 8 | bottom = comp;↵ | |
9 | else if(RIGHT_BUTTONS.equals(cons))↵ | 9 | else if(name.equals(TOP))↵ | |
10 | rightButtons = comp; | 10 | top = 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) | 2.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 70 |
Number of mapped statements | 10 |
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) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | else if (RIGHT.equals(cons)) |
| 3 | else if (name.equals(RIGHT)) | |||||||||||||||||
14 | right = comp; | 4 | right = comp; | ||||||||||||||||||
15 | else if (TOP_BUTTONS.equals(cons)) |
| 9 | else if (name.equals(TOP)) | |||||||||||||||||
16 | topButtons = comp; |
| 10 | top = comp; | |||||||||||||||||
17 | else if (LEFT_BUTTONS.equals(cons)) |
| 7 | else if (name.equals(BOTTOM)) | |||||||||||||||||
18 | leftButtons = comp; |
| 8 | bottom = comp; | |||||||||||||||||
19 | else if (BOTTOM_BUTTONS.equals(cons)) |
| 5 | else if (name.equals(LEFT)) | |||||||||||||||||
20 | bottomButtons = comp; |
| 6 | left = comp; | |||||||||||||||||
21 | if (RIGHT_BUTTONS.equals(cons)) |
| 1 | if (name.equals(CENTER)) | |||||||||||||||||
22 | rightButtons = comp; |
| 2 | center = comp; |
Row | Violation |
---|---|
1 | Type java.lang.Object of variable cons does not match with type java.lang.String of variable RIGHT |
2 | Type java.lang.Object of variable cons does not match with type java.lang.String of variable TOP |
3 | Expression topButtons is a field being modified, and thus it cannot be parameterized |
4 | Expression top is a field being modified, and thus it cannot be parameterized |
5 | Type java.lang.Object of variable cons does not match with type java.lang.String of variable BOTTOM |
6 | Expression leftButtons is a field being modified, and thus it cannot be parameterized |
7 | Expression bottom is a field being modified, and thus it cannot be parameterized |
8 | Type java.lang.Object of variable cons does not match with type java.lang.String of variable LEFT |
9 | Expression bottomButtons is a field being modified, and thus it cannot be parameterized |
10 | Expression left is a field being modified, and thus it cannot be parameterized |
11 | Type java.lang.Object of variable cons does not match with type java.lang.String of variable CENTER |
12 | Expression rightButtons is a field being modified, and thus it cannot be parameterized |
13 | Expression center is a field being modified, and thus it cannot be parameterized |