File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java | |||
Method name: int getColumnType(ISQLConnection, ITableInfo, int)
|
Method name: String getColumnName(ISQLConnection, ITableInfo, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | TableColumnInfo[] infoArr = con.getSQLMetaData().getColumnInfo(ti);↵ | 1 | TableColumnInfo[] infoArr = sourceConn.getSQLMetaData().getColumnInfo(ti);↵ | |
2 | TableColumnInfo colInfo = infoArr[column];↵ | 2 | TableColumnInfo colInfo = infoArr[column];↵ | |
3 | return colInfo.getDataType(); | 3 | return colInfo.getColumnName(); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | TableColumnInfo[] infoArr = con.getSQLMetaData().getColumnInfo(ti); |
| 1 | TableColumnInfo[] infoArr = sourceConn.getSQLMetaData().getColumnInfo(ti); | ||||||||||
2 | TableColumnInfo colInfo = infoArr[column]; | 2 | TableColumnInfo colInfo = infoArr[column]; | |||||||||||
|
| 3 | return colInfo.getColumnName(); | |||||||||||
3 | return colInfo.getDataType(); |
| |
Row | Violation |
---|---|
1 | Unmatched statement return colInfo.getColumnName(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched return colInfo.getColumnName(); |
3 | Unmatched statement return colInfo.getDataType(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched return colInfo.getDataType(); |