File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/EnhancedMenuItem.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java | |||
Method name: void mouseReleased(MouseEvent)
|
Method name: void main(String[])
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if(msgSet)↵ | 1 | if(background)↵ | |
2 | {↵ | 2 | {↵ | |
3 | GUIUtilities.getView((Component)evt.getSource())↵ | 3 | ↵ | |
4 | .getStatus().setMessage(null);↵ | |||
5 | msgSet = false↵ | 4 | background = false;↵ | |
5 | Log.log(Log.WARNING,jEdit.class,"You cannot specify both the"↵ | |||
6 | ;↵ | 6 | + " -background and -noserver switches");↵ | |
7 | } | 7 |
| |
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 different classes |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 28.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (msgSet) |
| 161 | if (background) | ||||||||||
2 | GUIUtilities.getView((Component)evt.getSource()).getStatus().setMessage(null); | | ||||||||||||
3 | msgSet = false; |
| 162 | background = false; | ||||||||||
|
| 163 | Log.log(Log.WARNING, jEdit.class, "You cannot specify both the" + " -background and -noserver switches"); |
Row | Violation |
---|---|
1 | Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |