File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/expander/OracleTableParentExpander.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropPrimaryKeyCommand.java | |||
Method name: List
|
Method name: TableColumnInfo[] getPkTableColumns(ITableInfo)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (!childNode.getUserObject().toString().startsWith("BIN$")) {↵ | 1 | if (↵ | |
2 | result.add(childNode);↵ | |||
3 | ↵ | 2 | colInfo.getSimpleName().equals(pkColName))↵ | |
3 | {↵ | |||
4 | result.add(colInfo);↵ | |||
4 | } | 5 | } | |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
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) | 30.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | if (!childNode.getUserObject().toString().startsWith("BIN$")) |
| 7 | if (colInfo.getSimpleName().equals(pkColName)) | ||||||||||||||||||
6 | result.add(childNode); |
| 8 | result.add(colInfo); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.ObjectTreeNode of variable childNode does not match with type net.sourceforge.squirrel_sql.fw.sql.TableColumnInfo of variable colInfo |
2 | Type java.util.List<net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.ObjectTreeNode> of variable result does not match with type java.util.ArrayList<net.sourceforge.squirrel_sql.fw.sql.TableColumnInfo> of variable result |
3 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.oracle.expander.OracleTableParentExpander and net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropPrimaryKeyCommand do not have a common superclass |