super.clearGui();
username.setText(""); //$NON-NLS-1$
password.setText("");
super.clearGui();
inputVal.setText(""); // $NON-NLS-1$
returnVal.setText(""); // $NON-NLS-1$
useSeparator.setSelected(true);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/LoginConfigGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ForeachControlPanel.java
|
Method name: void clearGui()
|
|
Method name: void clearGui()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | super.clearGui();↵ | | 1 | super.clearGui();↵
|
2 | ↵ | | 2 | ↵
|
3 | username↵ | | 3 | inputVal.setText(""); // $NON-NLS-1$↵
|
4 | .setText(""); //$NON-NLS-1$↵ | | 4 | returnVal.setText(""); // $NON-NLS-1$↵
|
5 | password.setText(""); | | 5 | useSeparator.setSelected(true);
|
See real code fragment |
|
See real code fragment |
Summary
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 | 12 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super.clearGui(); | | 1 | super.clearGui(); |
2 | username.setText(""); | | 2 | inputVal.setText(""); |
3 | password.setText(""); | | 3 | returnVal.setText(""); |
| | | 4 | useSeparator.setSelected(true); |
Precondition Violations (2)
Row |
Violation |
1 | Super method call super.clearGui(); cannot be extracted from method |
2 | Super method call super.clearGui(); cannot be extracted from method |