if ( sessionMap != null ) {
if ( sessionMap.isEmpty() ) {
context.set( null );
}
}
if ( log.isTraceEnabled() ) {
log.trace( "located native-sql query plan in cache (" + spec.getQueryString() + ")" );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/context/ManagedSessionContext.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
|
Method name: void doCleanup()
|
|
Method name: NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | if ( sessionMap != null ) {↵ | | 1 | if ( ↵
|
2 | if ( sessionMap.isEmpty() ) {↵ | | |
|
3 | context.set( null↵ | | 2 | log.isTraceEnabled() ) {↵
|
4 | );↵ | | 3 | log.trace( "located native-sql query plan in cache (" + spec.getQueryString() + ")" );↵
|
5 | }↵ | | 4 | }
|
6 | } | | | |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |