File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/NewSessionPropertiesSheet.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/GlobalPreferencesSheet.java | |||
Method name: void createGUI()
|
Method name: void createGUI()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | PluginInfo pi = plugins[plugIdx];↵ | 1 | PluginInfo pi = plugins[plugIdx];↵ | |
2 | if (pi.isLoaded())↵ | 2 | if (pi.isLoaded())↵ | |
3 | {↵ | 3 | {↵ | |
4 | INewSessionPropertiesPanel[] pnls =↵ | 4 | IGlobalPreferencesPanel[] pnls =↵ | |
5 | pi.getPlugin().getNewSessionPropertiesPanels();↵ | 5 | pi.getPlugin().getGlobalPreferencePanels();↵ | |
6 | if (pnls != null && pnls.length > 0)↵ | 6 | if (pnls != null && pnls.length > 0)↵ | |
7 | {↵ | 7 | {↵ | |
8 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx)↵ | 8 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx)↵ | |
9 | {↵ | 9 | {↵ | |
10 | _panels.add(pnls[pnlIdx]);↵ | 10 | _panels.add(pnls[pnlIdx]);↵ | |
11 | }↵ | 11 | }↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 12 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | PluginInfo pi = plugins[plugIdx]; | 10 | PluginInfo pi = plugins[plugIdx]; | ||||||||||||||||
9 | if (pi.isLoaded()) | 11 | if (pi.isLoaded()) | ||||||||||||||||
10 | INewSessionPropertiesPanel[] pnls = pi.getPlugin().getNewSessionPropertiesPanels(); |
| | ||||||||||||||||
|
| 12 | IGlobalPreferencesPanel[] pnls = pi.getPlugin().getGlobalPreferencePanels(); | ||||||||||||||||
11 | if (pnls != null && pnls.length > 0) |
| 13 | if (pnls != null && pnls.length > 0) | |||||||||||||||
12 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx) |
| 14 | for (int pnlIdx = 0; pnlIdx < pnls.length; ++pnlIdx) | |||||||||||||||
13 | _panels.add(pnls[pnlIdx]); |
| 15 | _panels.add(pnls[pnlIdx]); |
Row | Violation |
---|---|
1 | Unmatched statement INewSessionPropertiesPanel[] pnls=pi.getPlugin().getNewSessionPropertiesPanels(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement IGlobalPreferencesPanel[] pnls=pi.getPlugin().getGlobalPreferencePanels(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Type net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel[] of variable pnls does not match with type net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel[] of variable pnls |
4 | Type int of variable pnls.length does not match with type int of variable pnls.length |
5 | Type int of variable pnls.length does not match with type int of variable pnls.length |
6 | Type net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel[] of variable pnls does not match with type net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel[] of variable pnls |