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: 3 | Number of AST nodes: 4 | |||
1 | if(repeatCount != 1)↵ | |||
1 | buffer.beginCompoundEdit();↵ | 2 | buffer.beginCompoundEdit();↵ | |
2 | for(int i = 0; i < _repeatCount; i++)↵ | 3 | for(int i = 0; i < repeatCount; i++)↵ | |
3 | action.invoke(view); | 4 | textArea.userInput(ch); | |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 6 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | for (int i = 0; i < _repeatCount; i++) |
| 15 | for (int i = 0; i < repeatCount; i++) | ||||||||||
|
| 16 | textArea.userInput(ch); | |||||||||||
24 | action.invoke(view); | |
Row | Violation |
---|---|
1 | Unmatched statement textArea.userInput(ch); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |