if ( log.isDebugEnabled() ) { log.debug( "collection was empty" ); }
if ( log.isTraceEnabled() ) { log.trace( "located HQL query plan in cache (" + queryString + ")" ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
Method name: void recreate(PersistentCollection, Serializable, SessionImplementor) Method name: HQLQueryPlan getHQLQueryPlan(String, boolean, Map)
Number of AST nodes: 2 Number of AST nodes: 2
1
if ( log.isDebugEnabled() ) {
1
if ( log.isTraceEnabled() ) {
2
						log.debug( "collection was empty" );
2
				log.trace( "located HQL query plan in cache (" + queryString + ")" );
3
					}
3
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    42
    if (log.isDebugEnabled())
    42
    if (log.isDebugEnabled())
    7
    if (log.isTraceEnabled())
    Differences
    Expression1Expression2Difference
    isDebugEnabledisTraceEnabledMETHOD_INVOCATION_NAME_MISMATCH
    7
    if (log.isTraceEnabled())
    43
    log.debug("collection was empty");
    43
    log.debug("collection was empty");
    8
    log.trace("located HQL query plan in cache (" + queryString + ")");
    Differences
    Expression1Expression2Difference
    debugtraceMETHOD_INVOCATION_NAME_MISMATCH
    "collection was empty""located HQL query plan in cache (" + queryString + ")"TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression log.debug("collection was empty") is a void method call, and thus it cannot be parameterized
    Expression log.trace("located HQL query plan in cache (" + queryString + ")") is a void method call, and thus it cannot be parameterized
    8
    log.trace("located HQL query plan in cache (" + queryString + ")");
    Precondition Violations (2)
    Row Violation
    1Expression log.debug("collection was empty") is a void method call, and thus it cannot be parameterized
    2Expression log.trace("located HQL query plan in cache (" + queryString + ")") is a void method call, and thus it cannot be parameterized