final Loadable[] loadables = getEntityPersisters();
for (int i=0; i<loadables.length; i++ ) {
if ( loadables[i].hasSubselectLoadableCollections() ) return true;
}
return false;
for ( int i = 0; i < dialectClasses.length; i++ ) {
if ( dialectClasses[i].isInstance( getDialect() ) ) {
return true;
}
}
return false;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/Loader.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testing/src/main/java/org/hibernate/junit/functional/FunctionalTestCase.java
|
Method name: boolean hasSubselectLoadableCollections()
|
|
Method name: boolean dialectIsOneOf(Class[])
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | final Loadable[] loadables = getEntityPersisters();↵ | | |
|
2 | for (int i=0; i<loadables.length; i++ ) {↵ | | 1 | for ( int i = 0; i < dialectClasses.length; i++ ) {
↵
|
3 | if ( loadables[i].hasSubselectLoadableCollections() ) ↵ | | 2 | if ( dialectClasses[i].isInstance( getDialect() ) ) {↵
|
4 | return true;↵ | | 3 | return true;↵
|
| | | 4 | }
↵
|
5 | }↵ | | 5 | }
↵
|
6 | return false; | | 6 | return false;
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |