log.warn( "firstResult/maxResults specified with collection fetch; applying in memory!" ); RowSelection selection = new RowSelection(); selection.setFetchSize( queryParameters.getRowSelection().getFetchSize() ); selection.setTimeout( queryParameters.getRowSelection().getTimeout() ); queryParametersToUse = queryParameters.createCopyUsing( selection );
log.warn( "firstResult/maxResults specified on polymorphic query; applying in memory!" ); RowSelection selection = new RowSelection(); selection.setFetchSize( queryParameters.getRowSelection().getFetchSize() ); selection.setTimeout( queryParameters.getRowSelection().getTimeout() ); queryParametersToUse = queryParameters.createCopyUsing( selection );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/QueryTranslatorImpl.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/HQLQueryPlan.java
Method name: List list(SessionImplementor, QueryParameters) Method name: List performList(QueryParameters, SessionImplementor)
Number of AST nodes: 5 Number of AST nodes: 5
1
log.warn( "firstResult/maxResults specified with collection fetch; applying in memory!" );
1
log.warn( "firstResult/maxResults specified on polymorphic query; applying in memory!" );
2
			RowSelection selection = new RowSelection();
2
			RowSelection selection = new RowSelection();
3
			selection.setFetchSize( queryParameters.getRowSelection().getFetchSize() );
3
			selection.setFetchSize( queryParameters.getRowSelection().getFetchSize() );
4
			selection.setTimeout( queryParameters.getRowSelection().getTimeout() );
4
			selection.setTimeout( queryParameters.getRowSelection().getTimeout() );
5
			queryParametersToUse = queryParameters.createCopyUsing( selection );
5
			queryParametersToUse = queryParameters.createCopyUsing( selection );
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons13
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    log.warn("firstResult/maxResults specified with collection fetch; applying in memory!");
    7
    log.warn("firstResult/maxResults specified with collection fetch; applying in memory!");
    8
    log.warn("firstResult/maxResults specified on polymorphic query; applying in memory!");
    Differences
    Expression1Expression2Difference
    "firstResult/maxResults specified with collection fetch; applying in memory!""firstResult/maxResults specified on polymorphic query; applying in memory!"LITERAL_VALUE_MISMATCH
    8
    log.warn("firstResult/maxResults specified on polymorphic query; applying in memory!");
    8
    RowSelection selection = new RowSelection();
    9
    RowSelection selection = new RowSelection();
    9
    selection.setFetchSize(queryParameters.getRowSelection().getFetchSize());
    10
    selection.setFetchSize(queryParameters.getRowSelection().getFetchSize());
    10
    selection.setTimeout(queryParameters.getRowSelection().getTimeout());
    11
    selection.setTimeout(queryParameters.getRowSelection().getTimeout());
    11
    queryParametersToUse = queryParameters.createCopyUsing(selection);
    12
    queryParametersToUse = queryParameters.createCopyUsing(selection);
    Precondition Violations (0)
    Row Violation