if(readNextChar != null)
return;
repeatCount = 1;
view.getStatus().setMessage(null);
repeatCount = 1;
view.getStatus().setMessage(null);
return;
Clone fragments detected by clone detection tool
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: 3
|
|
1 | if(readNextChar != null)↵ | | |
|
2 | return;↵ | | |
|
|
3 | repeatCount = 1;↵ | | 1 | repeatCount = 1;↵
|
4 | view.getStatus().setMessage(null); | | 2 | view.getStatus().setMessage(null);↵
|
| | | 3 | return;
|
See real code fragment |
|
See real code fragment |
Summary
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 declared in the same class |
Number of node comparisons | 6 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 8 | repeatCount = 1; |
| | | 9 | view.getStatus().setMessage(null); |
29 | if (readNextChar != null) | | | |
30 | return; | | 10 | return; |
Precondition Violations (2)
Row |
Violation |
1 | Conditional return; |
2 | Conditional return; |