if (e.getSource() == autoRedirects){
if (autoRedirects.isSelected()) {
followRedirects.setEnabled(false);
} else {
followRedirects.setEnabled(true);
}
}
if (e.getSource() == autoRedirects){
if (autoRedirects.isSelected()) {
followRedirects.setEnabled(false);
} else {
followRedirects.setEnabled(true);
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
|
Method name: void stateChanged(ChangeEvent)
|
|
Method name: void stateChanged(ChangeEvent)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (e.getSource() == autoRedirects){↵ | | 1 | if (e.getSource() == autoRedirects){↵
|
2 | if (autoRedirects.isSelected()) {↵ | | 2 | if (autoRedirects.isSelected()) {↵
|
3 | followRedirects.setEnabled(false);↵ | | 3 | followRedirects.setEnabled(false);↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | followRedirects.setEnabled(true);↵ | | 5 | followRedirects.setEnabled(true);↵
|
6 | }↵ | | 6 | }↵
|
7 | } | | 7 | }
|
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | if (e.getSource() == autoRedirects) | | 1 | if (e.getSource() == autoRedirects) |
2 | if (autoRedirects.isSelected()) | | 2 | if (autoRedirects.isSelected()) |
3 | followRedirects.setEnabled(false); | | 3 | followRedirects.setEnabled(false); |
| | | | |
4 | followRedirects.setEnabled(true); | | 4 | followRedirects.setEnabled(true); |
Precondition Violations (0)
Row |
Violation |