OptionTreeModel paneTreeModel = new OptionTreeModel(); OptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot(); // initialize the jEdit branch of the options tree jEditGroup = new OptionGroup("jedit");
OptionTreeModel paneTreeModel = new OptionTreeModel(); OptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot(); // initialize the Plugins branch of the options tree pluginsGroup = new OptionGroup("plugins");
Clone fragments detected by clone detection tool
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");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    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
    jEditGroup = new OptionGroup("jedit");
    3
    pluginsGroup = new OptionGroup("plugins");
    Differences
    Expression1Expression2Difference
    jEditGrouppluginsGroupVARIABLE_NAME_MISMATCH
    "jedit""plugins"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression jEditGroup is a field being modified, and thus it cannot be parameterized
    Expression pluginsGroup is a field being modified, and thus it cannot be parameterized
    3
    pluginsGroup = new OptionGroup("plugins");
    Precondition Violations (3)
    Row Violation
    1Expression jEditGroup is a field being modified, and thus it cannot be parameterized
    2Expression pluginsGroup is a field being modified, and thus it cannot be parameterized
    3Clone fragment #1 returns variables rootGroup, paneTreeModel , while Clone fragment #2 returns variables rootGroup, paneTreeModel