if (identifierQuoteString != null)
{
buf.append(identifierQuoteString);
}
buf.append(_catalog);
if (identifierQuoteString != null)
{
buf.append(identifierQuoteString);
}
buf.append(catSep);
if (identifierQuoteString != null)
{
buf.append(identifierQuoteString);
}
buf.append(_schema);
if (identifierQuoteString != null)
{
buf.append(identifierQuoteString);
}
buf.append(catSep);
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/DatabaseObjectInfo.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/DatabaseObjectInfo.java
|
Method name: String generateQualifiedName(ISQLDatabaseMetaData)
|
|
Method name: String generateQualifiedName(ISQLDatabaseMetaData)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | if (identifierQuoteString != null)↵ | | 1 | if (identifierQuoteString != null)↵
|
2 | {↵ | | 2 | {↵
|
3 | buf.append(identifierQuoteString);↵ | | 3 | buf.append(identifierQuoteString);↵
|
4 | }↵ | | 4 | }↵
|
5 | buf.append(_catalog);↵ | | 5 | buf.append(_schema);↵
|
6 | if (identifierQuoteString != null)↵ | | 6 | if (identifierQuoteString != null)↵
|
7 | {↵ | | 7 | {↵
|
8 | buf.append(identifierQuoteString);↵ | | 8 | buf.append(identifierQuoteString);↵
|
9 | }↵ | | 9 | }↵
|
| | | 10 | ↵
|
10 | buf.append(catSep); | | 11 | buf.append(catSep);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 18 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
28 | if (identifierQuoteString != null) | | 35 | if (identifierQuoteString != null) |
29 | buf.append(identifierQuoteString); | | 36 | buf.append(identifierQuoteString); |
30 | buf.append(_catalog); | | 37 | buf.append(_schema); |
31 | if (identifierQuoteString != null) | | 38 | if (identifierQuoteString != null) |
32 | buf.append(identifierQuoteString); | | 39 | buf.append(identifierQuoteString); |
33 | buf.append(catSep); | | 40 | buf.append(catSep); |
Precondition Violations (0)
Row |
Violation |