col.add(label1 != null ? label1 : Box.createVerticalGlue());
col.add(label2 != null ? label2 : Box.createVerticalGlue());
row.add(col);
row.add(Box.createHorizontalStrut(5));
col = Box.createVerticalBox();
col.add(field1 != null ? field1 : Box.createVerticalGlue());
col.add(field2 != null ? field2 : Box.createVerticalGlue());
row.add(col);
row.add(Box.createHorizontalStrut(5));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphVisualizer.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphVisualizer.java
|
Method name: Box createInfoColumn(JLabel, JTextField, JLabel, JTextField)
|
|
Method name: Box createInfoColumn(JLabel, JTextField, JLabel, JTextField)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | col.add(lab↵ | | 1 | col = Box.createVerticalBox();↵
|
2 | el1 != null ? label1 : Box.createVerticalGlue());↵ | | 2 | col.add(field1 != null ? field1 : Box.createVerticalGlue());↵
|
3 | col.add(label2 != null ? label2 : Box.createVerticalGlue());↵ | | 3 | col.add(field2 != null ? field2 : Box.createVerticalGlue());↵
|
4 | row.add(col);↵ | | 4 | row.add(col);↵
|
|
5 | row.add(Box.createHorizontalStrut(5)); | | 5 | row.add(Box.createHorizontalStrut(5));
|
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 the same method |
Number of node comparisons | 20 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 7 | col = Box.createVerticalBox(); |
| | | 8 | col.add(field1 != null ? field1 : Box.createVerticalGlue()); |
| | | 9 | col.add(field2 != null ? field2 : Box.createVerticalGlue()); |
3 | col.add(label1 != null ? label1 : Box.createVerticalGlue()); | | 10 | row.add(col); |
4 | col.add(label2 != null ? label2 : Box.createVerticalGlue()); | | 11 | row.add(Box.createHorizontalStrut(5)); |
5 | row.add(col); | | | |
6 | row.add(Box.createHorizontalStrut(5)); | | | |
Precondition Violations (0)
Row |
Violation |