if ( isCorrelatedSubselect() ) { if ( log.isDebugEnabled() ) { log.debug( methodName + "() : correlated subquery" ); } }
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/hql/ast/tree/DotNode.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
Method name: void checkForCorrelatedSubquery(String) Method name: NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification)
Number of AST nodes: 3 Number of AST nodes: 2
1
if ( isCorrelatedSubselect() ) {
2
			if ( log.isDebugEnabled() ) {
1
if ( log.isTraceEnabled() ) {
3
				log.debug( methodName + "() : correlated subquery" );
2
				log.trace( "located native-sql query plan in cache (" + spec.getQueryString() + ")" );
4
			}
3
			}
5
		}
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 comparisons4
  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
    2
    if (log.isDebugEnabled())
    2
    if (log.isDebugEnabled())
    6
    if (log.isTraceEnabled())
    Differences
    Expression1Expression2Difference
    isDebugEnabledisTraceEnabledMETHOD_INVOCATION_NAME_MISMATCH
    6
    if (log.isTraceEnabled())
    3
    log.debug(methodName + "() : correlated subquery");
    3
    log.debug(methodName + "() : correlated subquery");
    7
    log.trace("located native-sql query plan in cache (" + spec.getQueryString() + ")");
    Differences
    Expression1Expression2Difference
    debugtraceMETHOD_INVOCATION_NAME_MISMATCH
    methodName"located native-sql query plan in cache ("TYPE_COMPATIBLE_REPLACEMENT
    "() : correlated subquery"spec.getQueryString()TYPE_COMPATIBLE_REPLACEMENT
    methodName + "() : correlated subquery""located native-sql query plan in cache (" + spec.getQueryString() + ")"INFIX_EXTENDED_OPERAND_NUMBER_MISMATCH
    Preondition Violations
    Expression log.debug(methodName + "() : correlated subquery") is a void method call, and thus it cannot be parameterized
    Expression log.trace("located native-sql query plan in cache (" + spec.getQueryString() + ")") is a void method call, and thus it cannot be parameterized
    7
    log.trace("located native-sql query plan in cache (" + spec.getQueryString() + ")");
    Precondition Violations (2)
    Row Violation
    1Expression log.debug(methodName + "() : correlated subquery") is a void method call, and thus it cannot be parameterized
    2Expression log.trace("located native-sql query plan in cache (" + spec.getQueryString() + ")") is a void method call, and thus it cannot be parameterized