File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionSet.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionSet.java | |||
Method name: String[] getActionNames()
|
Method name: EditAction[] getActions()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | while(e.hasMoreElements())↵ | 1 | while(e.hasMoreElements())↵ | |
2 | {↵ | 2 | {↵ | |
3 | retVal[i++] = (String)e.nextElement();↵ | 3 | retVal[i++] = (EditAction)e.nextElement();↵ | |
4 | }↵ | 4 | }↵ | |
5 | return retVal; | 5 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
4 | while (e.hasMoreElements()) | 5 | while (e.hasMoreElements()) | ||||
5 | retVal[i++] = (String)e.nextElement(); |
| | ||||
|
| 6 | retVal[i++] = (EditAction)e.nextElement(); | ||||
6 | return retVal; |
| | ||||
|
| 7 | return retVal; |
Row | Violation |
---|---|
1 | Unmatched statement retVal[i++]=(String)e.nextElement(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement retVal[i++]=(EditAction)e.nextElement(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched return retVal; |
4 | Unmatched return retVal; |