File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/proxy/pojo/cglib/CGLIBLazyInitializer.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/proxy/pojo/javassist/JavassistLazyInitializer.java | |||
Method name: Object invoke(Object, Method, Object[])
|
Method name: Object invoke(Object, Method, Method, Object[])
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if ( method.getName().equals( "getHibernateLazyInitializer" ) ) {↵ | 1 | if ( thisMethod.getName().equals( "getHibernateLazyInitializer" ) ) {↵ | |
2 | return this;↵ | 2 | return this;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else {↵ | 4 | else {↵ | |
5 | throw new LazyInitializationException( "unexpected case hit, method=" + method.getName() );↵ | 5 | return proceed.invoke( proxy, args );↵ | |
6 | } | 6 |
| |
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) | 1.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 51 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | if (method.getName().equals("getHibernateLazyInitializer")) |
| 18 | if (thisMethod.getName().equals("getHibernateLazyInitializer")) | ||||||||||
17 | return this; | 19 | return this; | |||||||||||
else | | |||||||||||||
18 | throw new LazyInitializationException("unexpected case hit, method=" + method.getName()); |
| | |||||||||||
|
| 20 | return proceed.invoke(proxy, args); |
Row | Violation |
---|---|
1 | Unmatched throw new LazyInitializationException("unexpected case hit, method=" + method.getName()); |
2 | Unmatched return proceed.invoke(proxy,args); |