String propName = name.substring( 3 );
data.put( propName, args[0] );
return null;
String propName = name.substring( 3 );
data.put( propName, args[0] );
return null;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/cglib/ProxyFactoryFactoryImpl.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/javassist/ProxyFactoryFactoryImpl.java
|
Method name: Object intercept(Object, Method, Object[], MethodProxy)
|
|
Method name: Object invoke(Object, Method, Method, Object[])
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | String propName = name.substring( 3 );↵ | | 1 | String propName = name.substring( 3 );↵
|
2 | data.put( propName, args[0] );↵ | | 2 | data.put( propName, args[0] );↵
|
3 | return null; | | 3 | return null;
|
See real code fragment |
|
See real code fragment |
Summary
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 in different classes |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
17 | String propName = name.substring(3); | | 17 | String propName = name.substring(3); |
18 | data.put(propName, args[0]); | | 18 | data.put(propName, args[0]); |
19 | return null; | | 19 | return null; |
Precondition Violations (0)
Row |
Violation |