File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/AliasPropertiesInternalFrame.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/SQLHistoryDlg.java | |||
Method name: void dispose()
|
Method name: void onWindowClosed()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Dimension size = getSize();↵ | 1 | Dimension size = getSize();↵ | |
2 | Preferences.userRoot().putInt(PREF_KEY_ALIAS_PROPS_SHEET_WIDTH, size.width);↵ | 2 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_WIDTH, size.width);↵ | |
3 | Preferences.userRoot().putInt(PREF_KEY_ALIAS_PROPS_SHEET_HEIGHT, size.height);↵ | 3 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_HEIGHT, size.height);↵ | |
4 | super.dispose(); | 4 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_DIV_LOC, splSpilt.getDividerLocation()); | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Dimension size = getSize(); | 1 | Dimension size = getSize(); | ||||||||||||||
2 | Preferences.userRoot().putInt(PREF_KEY_ALIAS_PROPS_SHEET_WIDTH, size.width); |
| 2 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_WIDTH, size.width); | |||||||||||||
3 | Preferences.userRoot().putInt(PREF_KEY_ALIAS_PROPS_SHEET_HEIGHT, size.height); |
| 3 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_HEIGHT, size.height); | |||||||||||||
4 | super.dispose(); |
| 4 | Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_DIV_LOC, splSpilt.getDividerLocation()); |
Row | Violation |
---|---|
1 | Expression super.dispose() is a void method call, and thus it cannot be parameterized |
2 | Expression Preferences.userRoot().putInt(PREF_KEY_SQL_HISTORY_DLG_DIV_LOC,splSpilt.getDividerLocation()) is a void method call, and thus it cannot be parameterized |
3 | Super method call super.dispose(); cannot be extracted from method |
4 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.gui.db.aliasproperties.AliasPropertiesInternalFrame and net.sourceforge.squirrel_sql.client.session.mainpanel.SQLHistoryDlg do not have a common superclass |