if (!StringUtilities.isEmpty(_variablePart)) {
result = new StringBuilder(_staticPart).append(" ").append(_variablePart).toString();
}
if (!Character.isWhitespace(prevCh))
{
buf.append(' ');
}
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/OptionalSqlClause.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/StringUtilities.java
|
Method name: String toString()
|
|
Method name: String cleanString(String)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | if (!StringUtilities.isEmpty(_variablePart)) {↵ | | 1 | if (!Character.isWhites↵
|
2 | result = new StringBuilder(_staticPart).append(" ").append(_variablePart).toString(↵ | | 2 | pace(prevCh))↵
|
| | | 3 | {↵
|
3 | );↵ | | 4 | buf.append(' ');↵
|
4 | } | | 5 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |