File path: /sql12/plugins/i18n/src/net/sourceforge/squirrel_sql/plugins/i18n/DevelopersController.java | File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/BookmarksAccessor.java | |||
Method name: File getSourceDir()
|
Method name: BoomarksExternalService getService(IApplication)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | String msg = s_stringMgr.getString("I18n.NoSourceDir");↵ | 1 | String msg = s_stringMgr.getString("↵ | |
2 | // i18n[I18n.NoSourceDir=Please choose a source directory.]↵ | |||
3 | ↵ | 2 | BookmarksAccessor.bookmarksPluginNeeded");↵ | |
4 | JOptionPane.showMessageDialog(_app.getMainFrame(), msg);↵ | 3 | JOptionPane.showMessageDialog(application.getMainFrame(), msg);↵ | |
5 | return null; | 4 | return null; | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | String msg = s_stringMgr.getString("I18n.NoSourceDir"); |
| 3 | String msg = s_stringMgr.getString("BookmarksAccessor.bookmarksPluginNeeded"); | ||||||||||
4 | JOptionPane.showMessageDialog(_app.getMainFrame(), msg); |
| 4 | JOptionPane.showMessageDialog(application.getMainFrame(), msg); | ||||||||||
5 | return null; | 5 | return null; |
Row | Violation |
---|