File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/InputHandler.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/InputHandler.java | |||
Method name: void invokeAction(EditAction)
|
Method name: void userInput(char)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if(GUIUtilities.confirm(view,↵ | 1 | if(GUIUtilities.confirm(view,↵ | |
2 | "large-repeat-count",pp,↵ | 2 | "large-repeat-count.user-input",pp,↵ | |
3 | JOptionPane.WARNING_MESSAGE,↵ | 3 | JOptionPane.WARNING_MESSAGE,↵ | |
4 | JOptionPane.YES_NO_OPTION)↵ | 4 | JOptionPane.YES_NO_OPTION)↵ | |
5 | != JOptionPane.YES_OPTION)↵ | 5 | != JOptionPane.YES_OPTION)↵ | |
6 | {↵ | 6 | {↵ | |
7 | repeatCount = 1;↵ | 7 | repeatCount = 1;↵ | |
8 | view.getStatus().setMessage(null);↵ | 8 | view.getStatus().setMessage(null);↵ | |
9 | return;↵ | 9 | return;↵ | |
10 | } | 10 |
| |
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.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 4 |
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) | 26.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | if (GUIUtilities.confirm(view, "large-repeat-count", pp, JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION) != JOptionPane.YES_OPTION) |
| 7 | if (GUIUtilities.confirm(view, "large-repeat-count.user-input", pp, JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION) != JOptionPane.YES_OPTION) | ||||||||||
18 | repeatCount = 1; | 8 | repeatCount = 1; | |||||||||||
19 | view.getStatus().setMessage(null); | 9 | view.getStatus().setMessage(null); | |||||||||||
20 | return; |
| 10 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |