for (int i = 0; i < fields.length; i++)
{
Field field = fields[i];
if (field.getName().equalsIgnoreCase(jdbcTypeName)) {
result = field.getInt(null);
}
}
for (int i = 0; i < dbObjs.length; i++) {
ITableInfo info = (ITableInfo)dbObjs[i];
if (log.isDebugEnabled()) {
log.debug("dbObj["+i+"] = "+info.getSimpleName());
}
}
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/JDBCTypeMapper.java
|
|
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/commands/CopyTableCommand.java
|
Method name: int getJdbcType(String, int)
|
|
Method name: void execute()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (int i = 0; i < fields.length; i++)↵ | | 1 | for (int i = 0; i < dbObjs.length; i++)↵
|
2 | {↵ | | |
|
3 | Field field = fields[i];↵ | | |
|
4 | if (field.getName().equalsIgnoreCase(jdbcTypeName)) {↵ | | |
|
5 | result = field.getInt(null);↵ | | |
|
6 | ↵ | | 2 | {↵
|
| | | 3 | ITableInfo info = (ITableInfo)dbObjs[i];↵
|
| | | 4 | if (log.isDebugEnabled()) {↵
|
| | | 5 | log.debug("dbObj["+i+"] = "+info.getSimpleName());↵
|
7 | }↵ | | 6 | }↵
|
8 | } | | 7 | }
|
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 |