File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/DefaultDropDialog.java | File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/gui/VacuumTableDialog.java | |||
Method name: String[] getSimpleNames(IDatabaseObjectInfo[])
|
Method name: String[] getSimpleNames(ITableInfo[])
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String[] result = new String[dbInfo.length];↵ | 1 | String[] result = new String[infos.length];↵ | |
2 | for (int i = 0; i < result.length; i++) {↵ | 2 | for (int i = 0; i < result.length; i++) {↵ | |
3 | result[i] = dbInfo[i].getSimpleName();↵ | 3 | result[i] = infos[i].getSimpleName();↵ | |
4 | }↵ | 4 | }↵ | |
5 | return result; | 5 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | String[] result = new String[dbInfo.length]; |
| 1 | String[] result = new String[infos.length]; | ||||||||||||||
2 | for (int i = 0; i < result.length; i++) | 2 | for (int i = 0; i < result.length; i++) | |||||||||||||||
3 | result[i] = dbInfo[i].getSimpleName(); |
| 3 | result[i] = infos[i].getSimpleName(); | ||||||||||||||
4 | return result; | 4 | return result; |
Row | Violation |
---|---|
1 | Type int of variable dbInfo.length does not match with type int of variable infos.length |
2 | Type net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[] of variable dbInfo does not match with type net.sourceforge.squirrel_sql.fw.sql.ITableInfo[] of variable infos |
3 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.gui.DefaultDropDialog and net.sourceforge.squirrel_sql.plugins.postgres.gui.VacuumTableDialog do not have a common superclass |