plugin = thePlugin;
// Folder to store user settings.
try {
_userSettingsFolder = plugin.getPluginUserSettingsFolder();
} catch (IOException ex) {
throw new PluginException(ex);
}
loadPrefs();
plugin = thePlugin;
// Folder to store user settings.
try {
_userSettingsFolder = plugin.getPluginUserSettingsFolder();
} catch (IOException ex) {
throw new PluginException(ex);
}
loadPrefs();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/prefs/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 | plugin = thePlugin;↵ | | 1 | plugin = thePlugin;↵
|
2 | ↵ | | 2 | ↵
|
3 | // Folder to store user settings.↵ | | 3 | // Folder to store user settings.↵
|
4 | try {↵ | | 4 | try {↵
|
5 | _userSettingsFolder = plugin.getPluginUserSettingsFolder();↵ | | 5 | _userSettingsFolder = plugin.getPluginUserSettingsFolder();↵
|
6 | } catch (IOException ex) {↵ | | 6 | } catch (IOException ex) {↵
|
7 | throw new PluginException(ex);↵ | | 7 | throw new PluginException(ex);↵
|
8 | } ↵ | | 8 | } ↵
|
9 | ↵ | | 9 | ↵
|
10 | loadPrefs(); | | 10 | loadPrefs();
|
See real code fragment |
|
See real code fragment |
Summary
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 |
Number of node comparisons | 6 |
-
{Non-refactorable}
Mapping Summary
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) | 0.8 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | plugin = thePlugin; | | 1 | plugin = thePlugin; |
2 | try | | 2 | try |
3 | _userSettingsFolder = plugin.getPluginUserSettingsFolder(); | | 3 | _userSettingsFolder = plugin.getPluginUserSettingsFolder(); |
4 | loadPrefs(); | | 4 | loadPrefs(); |
Precondition Violations (0)
Row |
Violation |