super(); this.frameController = frameController; view = new TreeView(frameController); // register as focus owner FocusManager.getInstance().registerComponent(this);
super(); this.id = id; model = new MenuModel(id); map.put(id, this);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/tree/TreeController.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendablePopupMenu.java
Method name: void TreeController(AddressbookFrameController) Method name: void ExtendablePopupMenu(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
super();
1
super();
2
		this.frameController = frameController;
2
		this.
3
		view = new TreeView(frameController);
4
		
5
//		 register as focus owner
6
		FocusManager.getInstance().registerComponent(
3
id = id;
4
		model = new MenuModel(id);
7
this);
5
		map.put(id, this);
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
Number of node comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super();
    1
    super();
    1
    super();
    Preondition Violations
    Super constructor call super(); cannot be extracted from constructor
    Super constructor call super(); cannot be extracted from constructor
    1
    super();
                                
    2
    this.id = id;
    Preondition Violations
    Unmatched statement this.id=id; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.id = id;
    2
    this.frameController = frameController;
    2
    this.frameController = frameController;
    Preondition Violations
    Unmatched statement this.frameController=frameController; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                    
                                                          
    3
    model = new MenuModel(id);
    Preondition Violations
    Unmatched statement model=new MenuModel(id); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    model = new MenuModel(id);
    3
    view = new TreeView(frameController);
    3
    view = new TreeView(frameController);
    Preondition Violations
    Unmatched statement view=new TreeView(frameController); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                
                                            
    4
    map.put(id, this);
    Preondition Violations
    Unmatched statement map.put(id,this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    map.put(id, this);
    4
    FocusManager.getInstance().registerComponent(this);
                                                                                                                
    Precondition Violations (8)
    Row Violation
    1Super constructor call super(); cannot be extracted from constructor
    2Super constructor call super(); cannot be extracted from constructor
    3Unmatched statement this.id=id; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement this.frameController=frameController; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement model=new MenuModel(id); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement view=new TreeView(frameController); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    7Unmatched statement map.put(id,this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8The refactoring of the clones is infeasible, because classes org.columba.addressbook.gui.tree.TreeController and org.columba.core.gui.menu.ExtendablePopupMenu do not have a common superclass