public void modifyTestElement(TestElement lc) {
configureTestElement(lc);
if (lc instanceof RunTime) {
if (seconds.getText().length() > 0) {
((RunTime) lc).setRuntime(seconds.getText());
} else {
((RunTime) lc).setRuntime(0);
public void modifyTestElement(TestElement controller) {
configureTestElement(controller);
if (controller instanceof WhileController) {
if (theCondition.getText().length() > 0) {
((WhileController) controller).setCondition(theCondition.getText());
} else {
((WhileController) controller).setCondition(""); // $NON-NLS-1$
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/RunTimeGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/WhileControllerGui.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void modifyTestElement(TestElement lc) {↵ | | 1 | public void modifyTestElement(TestElement controller) {↵
|
2 | configureTestElement(lc);↵ | | 2 | configureTestElement(↵
|
3 | if (lc instanceof RunTime) {↵ | | |
|
4 | if (seconds↵ | | 3 | controller);↵
|
| | | 4 | if (controller instanceof WhileController) {↵
|
5 | .getText().length() > 0) {↵ | | 5 | if (theCondition.getText().length() > 0) {↵
|
6 | ((RunTime) lc).setRuntime(seconds.getText());↵ | | 6 | ((WhileController) controller).setCondition(theCondition.getText());↵
|
7 | } else {↵ | | 7 | } else {↵
|
8 | ((RunTime) lc).setRuntime(0);↵ | | 8 | ((WhileController) controller).setCondition(""); // $NON-NLS-1$↵
|
9 | | | 9 |
|
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 | |
Number of node comparisons | 0 |