File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/GeneralOptionsDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/TableView.java | |||
Method name: void GeneralOptionsDialog(JFrame)
|
Method name: void TableView(HeaderTableModel, TableModelSorter)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | try {↵ | 1 | try {↵ | |
2 | // get config plugin-handler↵ | 2 | ↵ | |
3 | configHandler = PluginManager↵ | 3 | handler = PluginManager↵ | |
4 | .getInstance().getExtensionHandler(↵ | 4 | .getInstance().getExtensionHandler(↵ | |
5 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);↵ | 5 | IExtensionHandlerKeys.ORG_COLUMBA_MAIL_TABLERENDERER);↵ | |
6 | } catch (PluginHandlerNotFoundException ex) {↵ | 6 | } catch (PluginHandlerNotFoundException ex) {↵ | |
7 | ex.printStackTrace();↵ | 7 | ex.printStackTrace();↵ | |
8 | }↵ | 8 | }↵ | |
9 | initComponents(); | 9 | getTree().setCellRenderer(new SubjectTreeRenderer(this)); | |
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 | 5 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | try | 6 | try | |||||||||||||||||||||
6 | configHandler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG); |
| 7 | handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_TABLERENDERER); | ||||||||||||||||||||
7 | initComponents(); |
| 8 | getTree().setCellRenderer(new SubjectTreeRenderer(this)); |
Row | Violation |
---|---|
1 | Expression configHandler is a field being modified, and thus it cannot be parameterized |
2 | Expression handler is a field being modified, and thus it cannot be parameterized |
3 | Type org.columba.api.plugin.IExtensionHandlerKeys of variable IExtensionHandlerKeys does not match with type org.columba.mail.plugin.IExtensionHandlerKeys of variable IExtensionHandlerKeys |
4 | Expression initComponents() is a void method call, and thus it cannot be parameterized |
5 | Expression getTree().setCellRenderer(new SubjectTreeRenderer(this)) is a void method call, and thus it cannot be parameterized |
6 | Expression initComponents() is a void method call, and thus it cannot be parameterized |
7 | Expression getTree().setCellRenderer(new SubjectTreeRenderer(this)) is a void method call, and thus it cannot be parameterized |