File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interfaceproxy/DocumentInterceptor.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mixed/DocumentInterceptor.java | |||
Method name: boolean onFlushDirty(Object, Serializable, Object[], Object[], String[], Type[])
|
Method name: boolean onFlushDirty(Object, Serializable, Object[], Object[], String[], Type[])
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if ( entity instanceof Document ) {↵ | 1 | if ( entity instanceof Document ) {↵ | |
2 | currentState[2] = Calendar.getInstance();↵ | 2 | currentState[3] = Calendar.getInstance();↵ | |
3 | return true;↵ | 3 | return true;↵ | |
4 | }↵ | 4 | }↵ | |
5 | else {↵ | 5 | else {↵ | |
6 | return false;↵ | 6 | return false;↵ | |
7 | } | 7 |
| |
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 in different classes |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (entity instanceof Document) |
| 1 | if (entity instanceof Document) | |||||||||||
2 | currentState[2] = Calendar.getInstance(); |
| 2 | currentState[3] = Calendar.getInstance(); | |||||||||||
3 | return true; | 3 | return true; | ||||||||||||
else | else | ||||||||||||||
4 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Type org.hibernate.test.interfaceproxy.Document does not match with type org.hibernate.test.mixed.Document |