setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
JPanel mainPanel = new JPanel(new BorderLayout());
mainPanel.add(createConditionPanel(), BorderLayout.NORTH);
add(mainPanel, BorderLayout.CENTER);
setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
JPanel mainPanel = new JPanel(new BorderLayout());
mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH);
add(mainPanel, BorderLayout.CENTER);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/IfControllerPanel.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ForeachControlPanel.java
|
Method name: void init()
|
|
Method name: void init()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | setLayout(new BorderLayout(0, 5));↵ | | 1 | setLayout(new BorderLayout(0, 5));↵
|
2 | setBorder(makeBorder());↵ | | 2 | setBorder(makeBorder());↵
|
3 | add(makeTitlePanel(), BorderLayout.NORTH);↵ | | 3 | add(makeTitlePanel(), BorderLayout.NORTH);↵
|
|
4 | JPanel mainPanel = new JPanel(new BorderLayout());↵ | | 4 | JPanel mainPanel = new JPanel(new BorderLayout());↵
|
5 | mainPanel.add(createConditionPanel(), BorderLayout.NORTH);↵ | | 5 | mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH);↵
|
6 | add(mainPanel, BorderLayout.CENTER); | | 6 | add(mainPanel, BorderLayout.CENTER);
|
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 in different classes having the same super class |
Number of node comparisons | 26 |
-
{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 | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | setLayout(new BorderLayout(0, 5)); | | 2 | setLayout(new BorderLayout(0, 5)); |
3 | setBorder(makeBorder()); | | 3 | setBorder(makeBorder()); |
4 | add(makeTitlePanel(), BorderLayout.NORTH); | | 4 | add(makeTitlePanel(), BorderLayout.NORTH); |
5 | JPanel mainPanel = new JPanel(new BorderLayout()); | | 5 | JPanel mainPanel = new JPanel(new BorderLayout()); |
6 | mainPanel.add(createConditionPanel(), BorderLayout.NORTH); | | 6 | mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH); |
7 | add(mainPanel, BorderLayout.CENTER); | | 7 | add(mainPanel, BorderLayout.CENTER); |
Precondition Violations (0)
Row |
Violation |