File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/NewSessionPropertiesSheet.java | File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/Folder.java | |||
Method name: void createGUI()
|
Method name: void setSubFolders(Folder[])
|
|||
Number of AST nodes: 2 | Number of AST nodes: 3 | |||
1 | for (int pnlIdx = 0; pnlIdx↵ | 1 | if (value != null) {↵ | |
2 | < pnls.length; ++pnlIdx)↵ | 2 | for (int i = 0; i < value.length; ++↵ | |
3 | {↵ | |||
4 | _panels.add(pnls[pnlIdx↵ | 3 | i) {↵ | |
5 | ]);↵ | 4 | _subFolders.add(value[i]);↵ | |
6 | ↵ | 5 | }↵ | |
7 | } | 6 |
| |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
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 | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx) |
| 3 | for (int i = 0; i < value.length; ++i) | ||||||||||||||||||||||||
13 | _panels.add(pnls[pnlIdx]); |
| 4 | _subFolders.add(value[i]); |
Row | Violation |
---|---|
1 | Type int of variable pnls.length does not match with type int of variable value.length |
2 | Type net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel[] of variable pnls does not match with type net.sourceforge.squirrel_sql.plugins.favs.Folder[] of variable value |
3 | Type java.util.List<net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel> of variable _panels does not match with type java.util.List<net.sourceforge.squirrel_sql.plugins.favs.Folder> of variable _subFolders |
4 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.preferences.NewSessionPropertiesSheet and net.sourceforge.squirrel_sql.plugins.favs.Folder do not have a common superclass |