boolean result = false;
int type = columnInfo.getDataType();
if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY
|| type == Types.VARBINARY)
{
result = true;
}
return result;
boolean result = false;
int type = columnInfo.getDataType();
if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY
|| type == Types.VARBINARY)
{
result = true;
}
return result;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/util/DBUtil.java
|
|
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java
|
Method name: boolean isBinaryType(TableColumnInfo)
|
|
Method name: boolean isBinaryType(TableColumnInfo)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | boolean result = false;↵ | | 1 | boolean result = false;↵
|
2 | int type = columnInfo.getDataType();↵ | | 2 | int type = columnInfo.getDataType();↵
|
3 | if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY↵ | | 3 | if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY↵
|
4 | || type == Types.VARBINARY)↵ | | 4 | || type == Types.VARBINARY)↵
|
5 | {↵ | | 5 | {↵
|
6 | result = true;↵ | | 6 | result = true;↵
|
7 | }↵ | | 7 | }↵
|
8 | return result; | | 8 | return result;
|
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
-
{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) | 0.9 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | boolean result = false; | | 1 | boolean result = false; |
2 | int type = columnInfo.getDataType(); | | 2 | int type = columnInfo.getDataType(); |
3 | if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY || type == Types.VARBINARY) | | 3 | if (type == Types.BINARY || type == Types.BLOB || type == Types.LONGVARBINARY || type == Types.VARBINARY) |
4 | | | 4 | |
5 | return result; | | 5 | return result; |
Precondition Violations (0)
Row |
Violation |