setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH); // Add the standard title
// Specific setup
add(createDataPanel(), BorderLayout.CENTER);
if (standalone) {
setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
p = new JPanel();
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/examples/sampler/gui/ExampleSamplerGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java
|
Method name: void init()
|
|
Method name: void init()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
| | | 1 | if (standalone) {↵
|
1 | setLayout(new BorderLayout(0, 5));↵ | | 2 | setLayout(new BorderLayout(0, 5));↵
|
2 | setBorder(makeBorder());↵ | | 3 | setBorder(makeBorder());↵
|
3 | add(makeTitlePanel(), BorderLayout.NORTH); // Add the standard title↵ | | 4 | add(makeTitlePanel(), BorderLayout.NORTH);↵
|
|
4 | // Specific setup↵ | | |
|
5 | add(createDataPanel(), BorderLayout.CENTER); | | |
|
| | | 5 | p = new JPanel();↵
|
| | | 6 | }
|
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 | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | setLayout(new BorderLayout(0, 5)); | | 3 | setLayout(new BorderLayout(0, 5)); |
2 | setBorder(makeBorder()); | | 4 | setBorder(makeBorder()); |
3 | add(makeTitlePanel(), BorderLayout.NORTH); | | 5 | add(makeTitlePanel(), BorderLayout.NORTH); |
4 | add(createDataPanel(), BorderLayout.CENTER); | | | |
| | | 6 | p = new JPanel(); |
Precondition Violations (0)
Row |
Violation |