File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/sql/ANSIJoinFragment.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/sql/OracleJoinFragment.java | |||
Method name: JoinFragment copy()
|
Method name: JoinFragment copy()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | ANSIJoinFragment copy = new ANSIJoinFragment();↵ | 1 | OracleJoinFragment copy = new OracleJoinFragment();↵ | |
2 | copy.buffer↵ | 2 | copy.afterFrom = new StringBuffer( afterFrom.toString() );↵ | |
3 | = new StringBuffer( buffer.toString() );↵ | 3 | copy.afterWhere = new StringBuffer( afterWhere.toString() );↵ | |
4 | return copy; | 4 |
| |
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 having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ANSIJoinFragment copy = new ANSIJoinFragment(); |
| 1 | OracleJoinFragment copy = new OracleJoinFragment(); | ||||||||||||||||||
2 | copy.buffer = new StringBuffer(buffer.toString()); |
| 2 | copy.afterFrom = new StringBuffer(afterFrom.toString()); | ||||||||||||||||||
| 3 | copy.afterWhere = new StringBuffer(afterWhere.toString()); | ||||||||||||||||||||
3 | return copy; |
| 4 | return copy; |
Row | Violation |
---|---|
1 | Expression copy.buffer cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression copy.afterFrom cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables copy |