for (String sql : sqls) { result.append(sql); result.append("\n"); result.append(sep); result.append("\n"); }
while (next != null) { fileLines.append(next); fileLines.append("\n"); next = reader.readLine(); }
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/fw/src/net/sourceforge/squirrel_sql/fw/sql/QueryTokenizer.java
Method name: String createTableScriptString(IDatabaseObjectInfo[]) Method name: List getStatementsFromIncludeFile(String)
Number of AST nodes: 5 Number of AST nodes: 4
1
for (String sql : sqls) {
1
while (next != null) {
2
                result.append(sql);
2
                    fileLines.append(next);
3
                result.append("\n");
3
                    fileLines.append("\n");
4
                result.append(sep);
4
                
5
                result.append("\n");
5
    next = reader.readLine();
6
            }
6
                }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons1