for (int i=getChildCount()-1;i>=0;i--) {
ExplainRow child = (ExplainRow)getChildAt(i);
if (child.getID() == id) {
return child;
}
}
for (int i = 0; i < colInfos.length; i++) {
TableColumnInfo colInfo = colInfos[i];
if (colInfo.getColumnName().equals(columnName)) {
return colInfo;
}
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/explainplan/ExplainPlanExecuter.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnListDialog.java
|
Method name: ExplainRow findChild(int)
|
|
Method name: TableColumnInfo getColInfoByName(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (int i=getChildCount()-1;i>=0;i--) {↵ | | 1 | for (int i↵
|
2 | ExplainRow child = (ExplainRow)getChildAt(i);↵ | | |
|
3 | if (child.getID() == id) {↵ | | |
|
4 | return child;↵ | | |
|
5 | }↵ | | |
|
6 | ↵ | | 2 | = 0; i < colInfos.length; i++) {↵
|
| | | 3 | TableColumnInfo colInfo = colInfos[i];↵
|
| | | 4 | if (colInfo.getColumnName().equals(columnName)) {↵
|
| | | 5 | return colInfo;↵
|
| | | 6 | }↵
|
7 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |