File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/NewSessionPropertiesSheet.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/PluginManager.java | |||
Method name: void createGUI()
|
Method name: IPluginDatabaseObjectType[] getDatabaseObjectTypes(ISession)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx)↵ | 1 | for (int i = 0; i < objTypes.length; ++i)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _panels.add(pnls[pnlIdx]);↵ | 3 | objTypesList.add(objTypes[i]);↵ | |
4 | } | 4 |
| |
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 | 7 |
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) | 3.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx) |
| 8 | for (int i = 0; i < objTypes.length; ++i) | ||||||||||||||||||||||||
13 | _panels.add(pnls[pnlIdx]); |
| 9 | objTypesList.add(objTypes[i]); |
Row | Violation |
---|---|
1 | Type int of variable pnls.length does not match with type int of variable objTypes.length |
2 | Type net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel[] of variable pnls does not match with type net.sourceforge.squirrel_sql.client.plugin.IPluginDatabaseObjectType[] of variable objTypes |
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.client.plugin.IPluginDatabaseObjectType> of variable objTypesList |
4 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.preferences.NewSessionPropertiesSheet and net.sourceforge.squirrel_sql.client.plugin.PluginManager do not have a common superclass |