if ( url == null ) {
if ( LOG.isLoggable( Level.WARNING ) ) {
LOG.warning(
"A configurationResourceName was set to " + configurationResourceName +
" but the resource could not be loaded from the classpath." +
"Ehcache will configure itself using defaults."
);
}
}
if ( queryableCollection.getElementType().isComponentType() ) {
// Collection of components.
if ( propertyName.equals( EntityPersister.ENTITY_ID ) ) {
return ( PropertyMapping ) queryableCollection.getOwnerEntityPersister();
}
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-ehcache/src/main/java/org/hibernate/cache/SingletonEhCacheProvider.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/tree/FromElementType.java
|
Method name: URL loadResource(String)
|
|
Method name: PropertyMapping getPropertyMapping(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if ( url == null ) {↵ | | 1 | if ( ↵
|
2 | if ( LOG.isLoggable( Level.WARNING ) ) {↵ | | |
|
3 | LOG.warning(↵ | | |
|
4 | "A configurationResourceName was set to " + configurationResourceName +↵ | | |
|
5 | " but the resource could not be loaded from the classpath." +↵ | | |
|
6 | "Ehcache will configure itself using defaults."↵ | | |
|
7 | ↵ | | 2 | queryableCollection.getElementType().isComponentType() ) {↵
|
| | | 3 | // Collection of components.↵
|
| | | 4 | if ( propertyName.equals( EntityPersister.ENTITY_ID ) ) {↵
|
8 | );↵ | | 5 | return ( PropertyMapping ) queryableCollection.getOwnerEntityPersister();↵
|
9 | }↵ | | 6 | }↵
|
10 | } | | 7 | }
|
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 |