if ( log.isDebugEnabled() ) { log.debug( "throwQueryException() : no errors" ); }
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/ErrorCounter.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
Method name: void throwQueryException() Method name: NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification)
Number of AST nodes: 2 Number of AST nodes: 2
1
if ( log.isDebugEnabled() ) {
1
if ( log.isTraceEnabled() ) {
2
				log.debug( "throwQueryException() : no errors" );
2
				log.trace( "located native-sql query plan in cache (" + spec.getQueryString() + ")" );
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.2
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
    5
    if (log.isDebugEnabled())
    5
    if (log.isDebugEnabled())
    6
    if (log.isTraceEnabled())
    Differences
    Expression1Expression2Difference
    isDebugEnabledisTraceEnabledMETHOD_INVOCATION_NAME_MISMATCH
    6
    if (log.isTraceEnabled())
    6
    log.debug("throwQueryException() : no errors");
    6
    log.debug("throwQueryException() : no errors");
    7
    log.trace("located native-sql query plan in cache (" + spec.getQueryString() + ")");
    Differences
    Expression1Expression2Difference
    debugtraceMETHOD_INVOCATION_NAME_MISMATCH
    "throwQueryException() : no errors""located native-sql query plan in cache (" + spec.getQueryString() + ")"TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression log.debug("throwQueryException() : no errors") 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("throwQueryException() : no errors") 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