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);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
5 | p.setLayout(new BorderLayout()); | | 6 | p.setLayout(new BorderLayout()); |
6 | JScrollPane tableScrollPane = new JScrollPane(table.getView()); | | 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); | | 10 | p.add(filterToolbar, BorderLayout.NORTH); |
Precondition Violations (1)
Row |
Violation |
1 | Type org.columba.addressbook.gui.table.TableController of variable table does not match with type org.columba.mail.gui.table.TableController of variable tableController |