File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GlobalOptions.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/PluginOptions.java | |||
Method name: OptionTreeModel createOptionTreeModel()
|
Method name: OptionTreeModel createOptionTreeModel()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | OptionTreeModel paneTreeModel = new OptionTreeModel();↵ | 1 | OptionTreeModel paneTreeModel = new OptionTreeModel();↵ | |
2 | OptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot();↵ | 2 | OptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot();↵ | |
3 | // initialize the jEdit branch of the options tree↵ | 3 | // initialize the Plugins branch of the options tree↵ | |
4 | jEditGroup = new OptionGroup("jedit"); | 4 | pluginsGroup = new OptionGroup("plugins"); | |
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 having the same super class |
Number of node comparisons | 4 |
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | OptionTreeModel paneTreeModel = new OptionTreeModel(); | 1 | OptionTreeModel paneTreeModel = new OptionTreeModel(); | ||||||||||||||||
2 | OptionGroup rootGroup = (OptionGroup)paneTreeModel.getRoot(); | 2 | OptionGroup rootGroup = (OptionGroup)paneTreeModel.getRoot(); | ||||||||||||||||
3 | jEditGroup = new OptionGroup("jedit"); |
| 3 | pluginsGroup = new OptionGroup("plugins"); |
Row | Violation |
---|---|
1 | Expression jEditGroup is a field being modified, and thus it cannot be parameterized |
2 | Expression pluginsGroup is a field being modified, and thus it cannot be parameterized |
3 | Clone fragment #1 returns variables rootGroup, paneTreeModel , while Clone fragment #2 returns variables rootGroup, paneTreeModel |