box = Box.createRigidArea(new Dimension(10, 10));
authorPanel.add(box, c);
authorPanel.add(buildDateLabel, c);
c.gridx = 1;
box = Box.createRigidArea(new Dimension(5, 15));
authorPanel.add(box, c);
box = Box.createRigidArea(new Dimension(10, 10));
authorPanel.add(box, c);
authorPanel.add(authorLabel, c);
c.gridx = 1;
box = Box.createRigidArea(new Dimension(5, 15));
authorPanel.add(box, c);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
|
Method name: void init()
|
|
Method name: void init()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | box = Box.createRigidArea(new Dimension(10, 10));↵ | | 1 | box = Box.createRigidArea(new Dimension(10, 10));↵
|
2 | authorPanel.add(box, c);↵ | | 2 | authorPanel.add(box, c);↵
|
|
3 | authorPanel.add(buildDateLabel, c);↵ | | 3 | authorPanel.add(authorLabel, c);↵
|
|
4 | c.gridx = 1;↵ | | 4 | c.gridx = 1;↵
|
5 | box = Box.createRigidArea(new Dimension(5, 15));↵ | | 5 | box = Box.createRigidArea(new Dimension(5, 15));↵
|
6 | authorPanel.add(box, c); | | 6 | authorPanel.add(box, c);
|
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 the same method |
Number of node comparisons | 24 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
41 | box = Box.createRigidArea(new Dimension(10, 10)); | | 58 | box = Box.createRigidArea(new Dimension(10, 10)); |
42 | authorPanel.add(box, c); | | 59 | authorPanel.add(box, c); |
43 | authorPanel.add(buildDateLabel, c); | | 60 | authorPanel.add(authorLabel, c); |
44 | c.gridx = 1; | | 61 | c.gridx = 1; |
45 | box = Box.createRigidArea(new Dimension(5, 15)); | | 62 | box = Box.createRigidArea(new Dimension(5, 15)); |
46 | authorPanel.add(box, c); | | 59 | authorPanel.add(box, c); |
| | | 63 | authorPanel.add(box, c); |
Precondition Violations (2)
Row |
Violation |
1 | Unmatched statement authorPanel.add(box,c); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables box |