File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java | File path: /jEdit-4.2/src/org/objectweb/asm/Type.java | |||
Method name: EditPane[] getEditPanes()
|
Method name: String getDescriptor()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 3 | |||
1 | Vector vec = new Vector();↵ | |||
2 | getEditPanes(vec,splitPane);↵ | |||
3 | EditPane[] ep = new EditPane[vec.size()];↵ | |||
4 | vec.copyInto(ep);↵ | |||
5 | return ep↵ | 1 | StringBuffer buf = new StringBuffer();↵ | |
2 | getDescriptor(buf);↵ | |||
6 | ; | 3 | return buf.toString(); | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 11 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | StringBuffer buf = new StringBuffer(); | |||||||||||||||||||
4 | Vector vec = new Vector(); | | |||||||||||||||||||
5 | getEditPanes(vec, splitPane); |
| 2 | getDescriptor(buf); | |||||||||||||||||
|
| 3 | return buf.toString(); | ||||||||||||||||||
6 | EditPane[] ep = new EditPane[vec.size()]; |
| | ||||||||||||||||||
7 | vec.copyInto(ep); |
| | ||||||||||||||||||
8 | return ep; |
| |
Row | Violation |
---|---|
1 | Expression getEditPanes(vec,splitPane) is a void method call, and thus it cannot be parameterized |
2 | Expression getDescriptor(buf) is a void method call, and thus it cannot be parameterized |
3 | Expression getEditPanes(vec,splitPane) is a void method call, and thus it cannot be parameterized |
4 | Expression getDescriptor(buf) is a void method call, and thus it cannot be parameterized |
5 | Unmatched statement return buf.toString(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched return buf.toString(); |
7 | Unmatched statement EditPane[] ep=new EditPane[vec.size()]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Unmatched statement vec.copyInto(ep); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
9 | Unmatched return ep; |