public String getLimitString(String querySelect, int offset, int limit) {
if ( offset > 0 ) {
throw new UnsupportedOperationException( "query result offset is not supported" );
}
return new StringBuffer( querySelect.length() + 16 )
.append( querySelect )
.insert( 6, " first " + limit )
.toString();
public String getLimitString(String querySelect, int offset, int limit) {
if ( offset > 0 ) {
throw new UnsupportedOperationException( "query result offset is not supported" );
}
return new StringBuffer( querySelect.length() + 8 )
.append( querySelect )
.insert( 6, " first " + limit )
.toString();
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/IngresDialect.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/TimesTenDialect.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public String getLimitString(String querySelect, int offset, int limit) {↵ | | 1 | public String getLimitString(String querySelect, int offset, int limit) {↵
|
2 | if ( offset > 0 ) {↵ | | 2 | if ( offset > 0 ) {↵
|
3 | throw new UnsupportedOperationException( "query result offset is not supported" );↵ | | 3 | throw new UnsupportedOperationException( "query result offset is not supported" );↵
|
4 | }↵ | | 4 | }↵
|
5 | return new StringBuffer( querySelect.length() + 16 )↵ | | 5 | return new StringBuffer( querySelect.length() + 8 )↵
|
6 | .append( querySelect )↵ | | 6 | .append( querySelect )↵
|
7 | .insert( 6, " first " + limit )↵ | | 7 | .insert( 6, " first " + limit )↵
|
8 | .toString();↵ | | 8 | .toString();↵
|
9 | | | 9 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |