super(); this.frameMediator = frameMediator; addListSelectionListener(new MyListSelectionListener());
super(); this.controller = controller; setRenderer(new AccountListRenderer());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/tagging/CalendarTagList.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/AccountView.java
Method name: void CalendarTagList(IFrameMediator) Method name: void AccountView(AccountController)
Number of AST nodes: 3 Number of AST nodes: 3
1
super();
1
super();
2
		this.frameMediator = frameMediator;
3
		addListSelectionListener(new MyListSelection
2
        this.controller = controller;
4
Listener());
3
        setRenderer(new AccountListRenderer());
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();
                                                                
    2
    this.controller = controller;
    2
    this.frameMediator = frameMediator;
                                                                            
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    setRenderer(new AccountListRenderer());
    Differences
    Expression1Expression2Difference
    addListSelectionListenersetRendererMETHOD_INVOCATION_NAME_MISMATCH
    org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListenerorg.columba.mail.gui.composer.AccountListRendererVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    Expression setRenderer(new AccountListRenderer()) is a void method call, and thus it cannot be parameterized
    Type org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener of variable new MyListSelectionListener() does not match with type org.columba.mail.gui.composer.AccountListRenderer of variable new AccountListRenderer()
    • Make classes org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener and org.columba.mail.gui.composer.AccountListRenderer extend a common superclass
    3
    setRenderer(new AccountListRenderer());
    Precondition Violations (3)
    Row Violation
    1Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    2Expression setRenderer(new AccountListRenderer()) is a void method call, and thus it cannot be parameterized
    3Type org.columba.calendar.ui.tagging.CalendarTagList.MyListSelectionListener of variable new MyListSelectionListener() does not match with type org.columba.mail.gui.composer.AccountListRenderer of variable new AccountListRenderer()