for (String sql : sqls) {
buf.append(sql);
buf.append(sep);
buf.append("\n");
}
tmp.append(conditionClause);
tmp.append(overrideAction);
return tmp.toString();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/tab/OracleSourceTab.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/DialectUtils.java
|
Method name: void load(ISession, PreparedStatement)
|
|
Method name: String constructFKContraintActionClause(boolean, String, String, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | for (String sql : sqls) {↵ | | |
|
2 | buf.append(sql);↵ | | |
|
3 | buf.append(sep);↵ | | |
|
4 | buf.append("\n");↵ | | |
|
5 | } | | 1 | tmp.append(conditionClause);↵
|
| | | 2 | tmp.append(overrideAction);↵
|
| | | 3 | return tmp.toString();
|
See real code fragment |
|
See real code fragment |
Summary
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 in different classes |
Number of node comparisons | 9 |
-
{Non-refactorable}
Mapping Summary
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
22 | buf.append(sql); | | 5 | tmp.append(conditionClause); |
23 | buf.append(sep); | | 6 | tmp.append(overrideAction); |
| | | 7 | return tmp.toString(); |
24 | buf.append("\n"); | | | |
Precondition Violations (2)
Row |
Violation |
1 | Unmatched return tmp.toString(); |
2 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.oracle.tab.OracleSourceTab.OracleSourcePanel and net.sourceforge.squirrel_sql.fw.dialects.DialectUtils do not have a common superclass |