super(); this.frameMediator = frameMediator; addListSelectionListener(new MyListSelectionListener());
super(); initData(includeGroup); // initialize completer addCompleter();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/tagging/ContactTagList.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/autocomplete/DefaultAddressComboBox.java
Method name: void ContactTagList(IFrameMediator) Method name: void DefaultAddressComboBox(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
super();
1
super();
2
		this.frameMediator = frameMediator;
2
		
3
		addListSelectionListener(new MyListSelectionListen
3
initData(includeGroup);
4
		// initialize completer
4
er());
5
		addCompleter();
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    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
    initData(includeGroup);
    2
    this.frameMediator = frameMediator;
    2
    this.frameMediator = frameMediator;
    Preondition Violations
    Unmatched statement this.frameMediator=frameMediator; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                            
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addCompleter();
    Differences
    Expression1Expression2Difference
    addListSelectionListeneraddCompleterMETHOD_INVOCATION_NAME_MISMATCH
    addListSelectionListener(new MyListSelectionListener())addCompleter()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    Expression addCompleter() is a void method call, and thus it cannot be parameterized
    Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    Expression addCompleter() is a void method call, and thus it cannot be parameterized
    3
    addCompleter();
    Precondition Violations (10)
    Row Violation
    1Super constructor call super(); cannot be extracted from constructor
    2Super constructor call super(); cannot be extracted from constructor
    3Unmatched statement this.frameMediator=frameMediator; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    6Expression addCompleter() is a void method call, and thus it cannot be parameterized
    7Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    9Expression addCompleter() is a void method call, and thus it cannot be parameterized
    10The refactoring of the clones is infeasible, because classes org.columba.addressbook.gui.tagging.ContactTagList and org.columba.addressbook.gui.autocomplete.DefaultAddressComboBox do not have a common superclass