buf.append("[");
buf.append((String) foreignColumns[j]);
buf.append("]");
if (j < foreignColumns.length - 1) buf.append(", ");
buf.append("[");
buf.append((String) cols[i]);
buf.append("]");
if (i < cols.length - 1) buf.append(", ");
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java
|
|
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/util/MssqlIntrospector.java
|
Method name: String generateCreateTableScript(IDatabaseObjectInfo, ISQLConnection, boolean)
|
|
Method name: String generateCreateTableScript(IDatabaseObjectInfo, ISQLConnection, boolean)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | buf.append("[");↵ | | 1 | buf.append("[");↵
|
2 | buf.append((String) foreignColumns[j]);↵ | | 2 | buf.append((String) cols[i]);↵
|
3 | buf.append("]");↵ | | 3 | buf.append("]");↵
|
4 | if (j < foreignColumns.length - 1) buf.append(", "); | | 4 | if (i < cols.length - 1) buf.append(", ");
|
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
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) | 4.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
73 | buf.append("["); | | 61 | buf.append("["); |
74 | buf.append((String)foreignColumns[j]); | | 62 | buf.append((String)cols[i]); |
75 | buf.append("]"); | | 63 | buf.append("]"); |
76 | if (j < foreignColumns.length - 1) | | 64 | if (i < cols.length - 1) |
77 | | | 65 | |
Precondition Violations (0)
Row |
Violation |