scrollPane.setPreferredSize(new Dimension(450, 200));
scrollPane.getViewport().setBackground(Color.white);
panel.add(scrollPane, BorderLayout.CENTER);
return panel;
scrollPane.setPreferredSize(new Dimension(450, 200));
scrollPane.getViewport().setBackground(Color.white);
panel.add(scrollPane, BorderLayout.CENTER);
return panel;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/scripting/ScriptManager.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/scripting/ScriptManager.java
|
Method name: JPanel createLogList()
|
|
Method name: JPanel createScriptList()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | scrollPane.setPreferredSize(new Dimension(450, 200));↵ | | 1 | scrollPane.setPreferredSize(new Dimension(450, 200));↵
|
2 | scrollPane.getViewport().setBackground(Color.white);↵ | | 2 | scrollPane.getViewport().setBackground(Color.white);↵
|
3 | panel.add(scrollPane, BorderLayout.CENTER);↵ | | 3 | panel.add(scrollPane, BorderLayout.CENTER);↵
|
|
4 | return panel; | | 4 | return panel;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | scrollPane.setPreferredSize(new Dimension(450, 200)); | | 13 | scrollPane.setPreferredSize(new Dimension(450, 200)); |
12 | scrollPane.getViewport().setBackground(Color.white); | | 14 | scrollPane.getViewport().setBackground(Color.white); |
13 | panel.add(scrollPane, BorderLayout.CENTER); | | 15 | panel.add(scrollPane, BorderLayout.CENTER); |
14 | return panel; | | 16 | return panel; |
Precondition Violations (0)
Row |
Violation |