File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/proxy/pojo/cglib/CGLIBProxyFactory.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/proxy/pojo/javassist/JavassistProxyFactory.java | |||
Method name: void postInstantiate(String, Class, Set, Method, Method, AbstractComponentType)
|
Method name: void postInstantiate(String, Class, Set, Method, Method, AbstractComponentType)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | this.entityName = entityName;↵ | 1 | this.entityName = entityName;↵ | |
2 | this.persistentClass = persistentClass;↵ | 2 | this.persistentClass = persistentClass;↵ | |
3 | this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES);↵ | 3 | this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES);↵ | |
4 | this.getIdentifierMethod = getIdentifierMethod;↵ | 4 | this.getIdentifierMethod = getIdentifierMethod;↵ | |
5 | this.setIdentifierMethod = setIdentifierMethod;↵ | 5 | this.setIdentifierMethod = setIdentifierMethod;↵ | |
6 | this.componentIdType = componentIdType;↵ | 6 | this.componentIdType = componentIdType;↵ | |
7 | factory = CGLIBLazyInitializer.getProxyFactory(persistentClass, this.interfaces); | 7 | factory = JavassistLazyInitializer.getProxyFactory( persistentClass, this.interfaces ); | |
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 | 28 |
Number of mapped statements | 7 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.entityName = entityName; | 1 | this.entityName = entityName; | ||||||||||||
2 | this.persistentClass = persistentClass; | 2 | this.persistentClass = persistentClass; | ||||||||||||
3 | this.interfaces = (Class[])interfaces.toArray(NO_CLASSES); | 3 | this.interfaces = (Class[])interfaces.toArray(NO_CLASSES); | ||||||||||||
4 | this.getIdentifierMethod = getIdentifierMethod; | 4 | this.getIdentifierMethod = getIdentifierMethod; | ||||||||||||
5 | this.setIdentifierMethod = setIdentifierMethod; | 5 | this.setIdentifierMethod = setIdentifierMethod; | ||||||||||||
6 | this.componentIdType = componentIdType; | 6 | this.componentIdType = componentIdType; | ||||||||||||
7 | factory = CGLIBLazyInitializer.getProxyFactory(persistentClass, this.interfaces); |
| 7 | factory = JavassistLazyInitializer.getProxyFactory(persistentClass, this.interfaces); |
Row | Violation |
---|---|
1 | Expression CGLIBLazyInitializer cannot be unified with expression JavassistLazyInitializer , because common superclass org.hibernate.proxy.pojo.BasicLazyInitializer does not declare member(s) public static Class#RAW getProxyFactory(Class#RAW, Class#RAW[]) throws org.hibernate.HibernateException |