File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/FirebirdManagerPlugin.java | File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsPlugin.java | |||
Method name: JMenu getFirebirdManagerMenu(IApplication, ISession, boolean)
|
Method name: JMenu getSmarttoolsMenu(IApplication, ISession, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (jaybird2Driver) {↵ | 1 | if (forPopupMenu) {↵ | |
2 | menu.add(addMenuItem(application,↵ | 2 | menu.add(addMenuItem(application,↵ | |
3 | i18n.MENU_TITLE_FIREBIRDMANAGER_BACKUP_RESTORE_MANAGER,↵ | 3 | i18n.MENU_TITLE_SMARTTOOLS_FIND_VALUES,↵ | |
4 | FB_SHEET_TYPE_BACKUP, session));↵ | 4 | ST_SHEET_TYPE_FIND_VALUES, session));↵ | |
5 | menu.add(addMenuItem(application,↵ | 5 | menu.add(addMenuItem(application,↵ | |
6 | i18n.MENU_TITLE_FIREBIRDMANAGER_CREATE_DATABASE,↵ | 6 | i18n.MENU_TITLE_SMARTTOOLS_CHANGE_VALUES,↵ | |
7 | FB_SHEET_TYPE_CREATE, session));↵ | 7 | ST_SHEET_TYPE_CHANGE_VALUES, session));↵ | |
8 | menu.add(addMenuItem(application,↵ | 8 | menu.add(addMenuItem(application,↵ | |
9 | i18n.MENU_TITLE_FIREBIRDMANAGER_USER_MANAGER,↵ | 9 | i18n.MENU_TITLE_SMARTTOOLS_MISSING_INDICES,↵ | |
10 | FB_SHEET_TYPE_USER, session));↵ | 10 | ST_SHEET_TYPE_MISSING_INICES, session));↵ | |
11 | } | 11 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
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) | 5.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (jaybird2Driver) |
| 2 | if (forPopupMenu) | |||||||||||||||||
3 | menu.add(addMenuItem(application, i18n.MENU_TITLE_FIREBIRDMANAGER_BACKUP_RESTORE_MANAGER, FB_SHEET_TYPE_BACKUP, session)); |
| 3 | menu.add(addMenuItem(application, i18n.MENU_TITLE_SMARTTOOLS_FIND_VALUES, ST_SHEET_TYPE_FIND_VALUES, session)); | |||||||||||||||||
4 | menu.add(addMenuItem(application, i18n.MENU_TITLE_FIREBIRDMANAGER_CREATE_DATABASE, FB_SHEET_TYPE_CREATE, session)); |
| 4 | menu.add(addMenuItem(application, i18n.MENU_TITLE_SMARTTOOLS_CHANGE_VALUES, ST_SHEET_TYPE_CHANGE_VALUES, session)); | |||||||||||||||||
5 | menu.add(addMenuItem(application, i18n.MENU_TITLE_FIREBIRDMANAGER_USER_MANAGER, FB_SHEET_TYPE_USER, session)); |
| 5 | menu.add(addMenuItem(application, i18n.MENU_TITLE_SMARTTOOLS_MISSING_INDICES, ST_SHEET_TYPE_MISSING_INICES, session)); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.FirebirdManagerPlugin.i18n does not match with type net.sourceforge.squirrel_sql.plugins.smarttools.SmarttoolsPlugin.i18n |
2 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.FirebirdManagerPlugin.i18n does not match with type net.sourceforge.squirrel_sql.plugins.smarttools.SmarttoolsPlugin.i18n |
3 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.FirebirdManagerPlugin.i18n does not match with type net.sourceforge.squirrel_sql.plugins.smarttools.SmarttoolsPlugin.i18n |