UserParameters up = (UserParameters) super.clone();
up.lock = lock; // ensure that clones share the same lock object
return up;
Container panel = super.makeTitlePanel();
// Note: the file panel already includes the error logging checkbox,
// so we don't have to add it explicitly.
panel.add(getFilePanel());
return panel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/UserParameters.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/gui/AbstractVisualizer.java
|
Method name: Object clone()
|
|
Method name: Container makeTitlePanel()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | UserParameters up = (UserParameters) super.clone();↵ | | 1 | Container panel = super.makeTitlePanel();↵
|
2 | up.lock = lock; // ensure that clones share the same lock object↵ | | 2 | // Note: the file panel already includes the error logging checkbox,↵
|
| | | 3 | // so we don't have to add it explicitly.↵
|
| | | 4 | panel.add(getFilePanel());↵
|
3 | return up; | | 5 | return panel;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
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 |
Number of node comparisons | 9 |