String testStdMethod = Introspector.decapitalize( methodName.substring(3) );
String testOldMethod = methodName.substring(3);
if ( testStdMethod.equals(propertyName) || testOldMethod.equals(propertyName) ) {
return methods[i];
}
String testStdMethod = Introspector.decapitalize( methodName.substring(2) );
String testOldMethod = methodName.substring(2);
if ( testStdMethod.equals(propertyName) || testOldMethod.equals(propertyName) ) {
return methods[i];
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String testStdMethod = Introspector.decapitalize( methodName.substring(3) );↵ | | 1 | String testStdMethod = Introspector.decapitalize( methodName.substring(2) );↵
|
2 | String testOldMethod = methodName.substring(3);↵ | | 2 | String testOldMethod = methodName.substring(2);↵
|
3 | if ( testStdMethod.equals(propertyName) || testOldMethod.equals(propertyName) ) {↵ | | 3 | if ( testStdMethod.equals(propertyName) || testOldMethod.equals(propertyName) ) {↵
|
4 | return methods[i];↵ | | 4 | return methods[i];↵
|
5 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |