for (String sql : sqls) {
result.append(sql);
result.append("\n");
result.append(sep);
result.append("\n");
}
if (inMultiSQLStatement) {
collector.append(next);
collector.append(stmtSep);
continue;
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/sqlscript/src/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateTableScriptCommand.java
|
|
File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/tokenizer/MysqlQueryTokenizer.java
|
Method name: String createTableScriptString(IDatabaseObjectInfo[])
|
|
Method name: void joinFragments(Pattern, boolean)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | for (String sql : sqls) {↵ | | |
|
2 | result.append(sql);↵ | | 1 | if (inMultiSQLStatement) {↵
|
3 | result.append("\n");↵ | | 2 | collector.append(next);↵
|
4 | result.append(sep);↵ | | 3 | collector.append(stmtSep);↵
|
5 | result.append("\n");↵ | | 4 | continue;↵
|
6 | } | | 5 | }
|
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 |