File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/pref/PreferencesManager.java | File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/prefs/PreferencesManager.java | |||
Method name: void initialize(IPlugin)
|
Method name: void initialize(IPlugin)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | firebirdManagerPlugin = plugin;↵ | 1 | plugin = thePlugin;↵ | |
2 | ↵ | |||
3 | // Folder to store user settings.↵ | |||
2 | try {↵ | 4 | try {↵ | |
3 | userSettingsFolder = firebirdManagerPlugin.getPluginUserSettingsFolder();↵ | 5 | _userSettingsFolder = plugin.getPluginUserSettingsFolder();↵ | |
4 | } catch (IOException ex) {↵ | 6 | } catch (IOException ex) {↵ | |
5 | throw new PluginException(ex);↵ | 7 | throw new PluginException(ex);↵ | |
6 | } ↵ | 8 | } ↵ | |
7 | firebirdManagerPrefs = (FirebirdManagerPreferenceBean)loadPreferences(PREFERENCES_BEAN_GLOBAL↵ | 9 | ↵ | |
8 | ); | 10 | loadPrefs(); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 7 |
Number of mapped statements | 3 |
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) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | firebirdManagerPlugin = plugin; |
| 1 | plugin = thePlugin; | |||||||||||||
2 | try | 2 | try | ||||||||||||||
3 | userSettingsFolder = firebirdManagerPlugin.getPluginUserSettingsFolder(); |
| 3 | _userSettingsFolder = plugin.getPluginUserSettingsFolder(); | |||||||||||||
|
| 4 | loadPrefs(); | ||||||||||||||
4 | firebirdManagerPrefs = (FirebirdManagerPreferenceBean)loadPreferences(PREFERENCES_BEAN_GLOBAL); |
| |
Row | Violation |
---|---|
1 | Unmatched statement loadPrefs(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement firebirdManagerPrefs=(FirebirdManagerPreferenceBean)loadPreferences(PREFERENCES_BEAN_GLOBAL); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |