this.entityName = entityName; this.persistentClass = persistentClass; this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES); this.getIdentifierMethod = getIdentifierMethod; this.setIdentifierMethod = setIdentifierMethod; this.componentIdType = componentIdType; factory = CGLIBLazyInitializer.getProxyFactory(persistentClass, this.interfaces);
this.entityName = entityName; this.persistentClass = persistentClass; this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES); this.getIdentifierMethod = getIdentifierMethod; this.setIdentifierMethod = setIdentifierMethod; this.componentIdType = componentIdType; factory = JavassistLazyInitializer.getProxyFactory( persistentClass, this.interfaces );
Clone fragments detected by clone detection tool
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 );
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons28
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    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 = CGLIBLazyInitializer.getProxyFactory(persistentClass, this.interfaces);
    7
    factory = JavassistLazyInitializer.getProxyFactory(persistentClass, this.interfaces);
    Differences
    Expression1Expression2Difference
    org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializerorg.hibernate.proxy.pojo.javassist.JavassistLazyInitializerSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    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
    7
    factory = JavassistLazyInitializer.getProxyFactory(persistentClass, this.interfaces);
    Precondition Violations (1)
    Row Violation
    1Expression 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