p.setLayout(new BorderLayout()); JScrollPane tableScrollPane = new JScrollPane(table.getView()); tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); p.add(tableScrollPane, BorderLayout.CENTER); p.add(filterToolbar, BorderLayout.NORTH);
p.setLayout(new BorderLayout()); JScrollPane tableScrollPane = new JScrollPane(tableController.getView()); tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); p.add(tableScrollPane, BorderLayout.CENTER); p.add(filterToolbar, BorderLayout.NORTH);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/frame/AddressbookFrameController.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/frame/ThreePaneMailFrameController.java
Method name: void registerDockables() Method name: void registerDockables()
Number of AST nodes: 5 Number of AST nodes: 5
1
p.setLayout(new BorderLayout());
1
p.setLayout(new BorderLayout());
2
		JScrollPane tableScrollPane = new JScrollPane(table.getView());
2
		JScrollPane tableScrollPane = new JScrollPane(tableController.getView());
3
		tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
3
		tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
4
		p.add(tableScrollPane, BorderLayout.CENTER);
4
		p.add(tableScrollPane, BorderLayout.CENTER);
5
		p.add(filterToolbar, BorderLayout.NORTH);
5
		p.add(filterToolbar, BorderLayout.NORTH);
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 comparisons13
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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
    5
    p.setLayout(new BorderLayout());
    6
    p.setLayout(new BorderLayout());
    6
    JScrollPane tableScrollPane = new JScrollPane(table.getView());
    6
    JScrollPane tableScrollPane = new JScrollPane(table.getView());
    7
    JScrollPane tableScrollPane = new JScrollPane(tableController.getView());
    Differences
    Expression1Expression2Difference
    tabletableControllerVARIABLE_NAME_MISMATCH
    org.columba.addressbook.gui.table.TableControllerorg.columba.mail.gui.table.TableControllerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.addressbook.gui.table.TableController of variable table does not match with type org.columba.mail.gui.table.TableController of variable tableController
    • Make classes org.columba.addressbook.gui.table.TableController and org.columba.mail.gui.table.TableController extend a common superclass
    7
    JScrollPane tableScrollPane = new JScrollPane(tableController.getView());
    7
    tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    8
    tableScrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    8
    p.add(tableScrollPane, BorderLayout.CENTER);
    9
    p.add(tableScrollPane, BorderLayout.CENTER);
    9
    p.add(filterToolbar, BorderLayout.NORTH);
    9
    p.add(filterToolbar, BorderLayout.NORTH);
    10
    p.add(filterToolbar, BorderLayout.NORTH);
    Differences
    Expression1Expression2Difference
    org.columba.addressbook.gui.table.FilterToolbarorg.columba.mail.gui.filtertoolbar.FilterToolbarSUBCLASS_TYPE_MISMATCH
    10
    p.add(filterToolbar, BorderLayout.NORTH);
    Precondition Violations (1)
    Row Violation
    1Type org.columba.addressbook.gui.table.TableController of variable table does not match with type org.columba.mail.gui.table.TableController of variable tableController