File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/dynamicentity/ProxyHelper.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/dynamicentity/ProxyHelper.java | |||
Method name: Person newPersonProxy(Serializable)
|
Method name: Customer newCustomerProxy(Serializable)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | return ( Person ) Proxy.newProxyInstance(↵ | 1 | return ( Customer ) Proxy.newProxyInstance(↵ | |
2 | Person.class.getClassLoader(),↵ | 2 | Customer.class.getClassLoader(),↵ | |
3 | new Class[] {Person.class},↵ | 3 | new Class[] {Customer.class},↵ | |
4 | new DataProxyHandler( Person.class.getName(), id )↵ | 4 | new DataProxyHandler( Customer.class.getName(), id )↵ | |
5 | ); | 5 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 | return (Person)Proxy.newProxyInstance(Person.class.getClassLoader(), new Class[] {Person.class}, new DataProxyHandler(Person.class.getName(), id)); |
| 1 | return (Customer)Proxy.newProxyInstance(Customer.class.getClassLoader(), new Class[] {Customer.class}, new DataProxyHandler(Customer.class.getName(), id)); |
Row | Violation |
---|