String token = tokens.nextToken();
result.append( token );
if ( isQuote( token ) ) {
quoted = !quoted;
}
else if ( !quoted ) {
if ( "is".equals( token ) ) {
result.append( "\n " );
}
}
String token = tokens.nextToken();
if ( isQuote( token ) ) {
quoted = !quoted;
}
else if ( !quoted ) {
if ( isBreak( token ) ) {
result.append( "\n " );
}
}
result.append( token );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/util/DDLFormatterImpl.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/util/DDLFormatterImpl.java
|
Method name: String formatCommentOn(String)
|
|
Method name: String formatAlterTable(String)
|
Number of AST nodes: 7
|
|
Number of AST nodes: 7
|
|
1 | String token = tokens.nextToken();↵ | | 1 | String token = tokens.nextToken();↵
|
2 | result.append( token );↵ | | 2 | ↵
|
3 | if ( isQuote( token ) ) {↵ | | 3 | if ( isQuote( token ) ) {↵
|
4 | quoted = !quoted;↵ | | 4 | quoted = !quoted;↵
|
5 | }↵ | | 5 | }↵
|
6 | else if ( !quoted ) {↵ | | 6 | else if ( !quoted ) {↵
|
7 | if ( "is".equals( token ) ) {↵ | | 7 | if ( isBreak( token ) ) {↵
|
8 | result.append( "\n " );↵ | | 8 | result.append( "\n " );↵
|
9 | }↵ | | 9 | }↵
|
10 | } | | 10 | }↵
|
| | | 11 | result.append( token );
|
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |