File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/GeneralOptionsDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/GeneralOptionsDialog.java | |||
Method name: void GeneralOptionsDialog(JFrame)
|
Method name: void GeneralOptionsDialog(JFrame)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 3 | |||
1 | try {↵ | 1 | try {↵ | |
2 | // get theme plugin-handler↵ | 2 | // get config plugin-handler↵ | |
3 | handler = PluginManager.getInstance().getExtensionHandler(↵ | 3 | configHandler = PluginManager.getInstance().getExtensionHandler(↵ | |
4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_THEME);↵ | 4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG);↵ | |
5 | } catch (PluginHandlerNotFoundException ex) {↵ | 5 | } catch (PluginHandlerNotFoundException ex) {↵ | |
6 | ex.printStackTrace();↵ | 6 | ex.printStackTrace();↵ | |
7 | } | 7 | }↵ | |
8 |
| |||
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 the same method |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | try | 5 | try | ||||||||||||||||
4 | handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_THEME); |
| 6 | configHandler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_CONFIG); | |||||||||||||||
| 7 | initComponents(); |
Row | Violation |
---|---|
1 | Expression handler is a field being modified, and thus it cannot be parameterized |
2 | Expression configHandler is a field being modified, and thus it cannot be parameterized |