File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/TableInfo.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/explainplan/ExplainPlanExecuter.java | |||
Method name: void addChild(ITableInfo)
|
Method name: void addChild(ExplainRow)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (_childList == null)↵ | 1 | if (children == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _childList = new TreeSet<ITableInfo>();↵ | 3 | children = new ↵ | |
4 | ↵ | 4 | ArrayList<ExplainRow>();↵ | |
5 | }↵ | 5 | }↵ | |
6 | _childList.add(tab); | 6 | children.add(row); | |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_childList == null) |
| 1 | if (children == null) | |||||||||||||||||||||
|
| 2 | children = new ArrayList<ExplainRow>(); | ||||||||||||||||||||||
2 | _childList = new TreeSet<ITableInfo>(); |
| | ||||||||||||||||||||||
3 | _childList.add(tab); |
| 3 | children.add(row); |
Row | Violation |
---|---|
1 | Type java.util.SortedSet<net.sourceforge.squirrel_sql.fw.sql.ITableInfo> of variable _childList does not match with type java.util.List<net.sourceforge.squirrel_sql.plugins.oracle.explainplan.ExplainPlanExecuter.ExplainPlanModel.ExplainRow> of variable children |
2 | Unmatched statement children=new ArrayList<ExplainRow>(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement _childList=new TreeSet<ITableInfo>(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Type net.sourceforge.squirrel_sql.fw.sql.ITableInfo of variable tab does not match with type net.sourceforge.squirrel_sql.plugins.oracle.explainplan.ExplainPlanExecuter.ExplainPlanModel.ExplainRow of variable row |
5 | Type java.util.SortedSet<net.sourceforge.squirrel_sql.fw.sql.ITableInfo> of variable _childList does not match with type java.util.List<net.sourceforge.squirrel_sql.plugins.oracle.explainplan.ExplainPlanExecuter.ExplainPlanModel.ExplainRow> of variable children |
6 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.sql.TableInfo and net.sourceforge.squirrel_sql.plugins.oracle.explainplan.ExplainPlanExecuter.ExplainPlanModel.ExplainRow do not have a common superclass |