super(); this.frameMediator = frameMediator; addListSelectionListener(new MyListSelectionListener());
super(); this.frameMediator = frameMediator; addListSelectionListener(new MyListSelectionListener());
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/calendar/src/main/java/org/columba/calendar/ui/tagging/CalendarTagList.java
Method name: void ContactTagList(IFrameMediator) Method name: void CalendarTagList(IFrameMediator)
Number of AST nodes: 3 Number of AST nodes: 3
1
super();
1
super();
2
		this.frameMediator = frameMediator;
2
		this.frameMediator = frameMediator;
3
		addListSelectionListener(new MyListSelectionListener());
3
		addListSelectionListener(new MyListSelectionListener());
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 comparisons5
  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
    super();
    1
    super();
    2
    this.frameMediator = frameMediator;
    2
    this.frameMediator = frameMediator;
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addListSelectionListener(new MyListSelectionListener());
    Differences
    Expression1Expression2Difference
    org.columba.addressbook.gui.tagging.ContactTagList.MyListSelectionListenerorg.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListenerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.addressbook.gui.tagging.ContactTagList.MyListSelectionListener of variable new MyListSelectionListener() does not match with type org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener of variable new MyListSelectionListener()
    • Make classes org.columba.addressbook.gui.tagging.ContactTagList.MyListSelectionListener and org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener extend a common superclass
    3
    addListSelectionListener(new MyListSelectionListener());
    Precondition Violations (1)
    Row Violation
    1Type org.columba.addressbook.gui.tagging.ContactTagList.MyListSelectionListener of variable new MyListSelectionListener() does not match with type org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener of variable new MyListSelectionListener()