File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/AssertionGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/RegexExtractorGui.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 7 | |||
1 | setLayout(new BorderLayout());↵ | 1 | setLayout(new BorderLayout());↵ | |
2 | ↵ | 2 | setBorder(makeBorder());↵ | |
3 | Box box = Box.createVerticalBox();↵ | 3 | Box box = Box.createVerticalBox↵ | |
4 | setBorder(makeBorder());↵ | |||
5 | box.add(makeTitlePanel());↵ | 4 | ();↵ | |
6 | box.add(createFieldPanel());↵ | 5 | box.add(makeTitlePanel());↵ | |
7 | box.add(createTypePanel());↵ | 6 | box.add(makeSourcePanel());↵ | |
8 | add(box, BorderLayout.NORTH);↵ | 7 | add(box, BorderLayout.NORTH);↵ | |
9 | add(createStringPanel(), BorderLayout.CENTER); | 8 | add(makeParameterPanel(), BorderLayout.CENTER); | |
See real code fragment | See real code fragment |
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 different classes having the same super class |
Number of node comparisons | 56 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | setLayout(new BorderLayout()); | 1 | setLayout(new BorderLayout()); | |||||||||||
2 | Box box = Box.createVerticalBox(); | 3 | Box box = Box.createVerticalBox(); | |||||||||||
3 | setBorder(makeBorder()); | 2 | setBorder(makeBorder()); | |||||||||||
4 | box.add(makeTitlePanel()); | 4 | box.add(makeTitlePanel()); | |||||||||||
5 | box.add(createFieldPanel()); |
| 5 | box.add(makeSourcePanel()); | ||||||||||
6 | box.add(createTypePanel()); | | ||||||||||||
7 | add(box, BorderLayout.NORTH); | 6 | add(box, BorderLayout.NORTH); | |||||||||||
8 | add(createStringPanel(), BorderLayout.CENTER); |
| 7 | add(makeParameterPanel(), BorderLayout.CENTER); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables box , while Clone fragment #2 returns variables |