for (int i = 0; i < SHARE_TAGS.length; i++) {
if (SHARE_TAGS[i].equals(mode)) {
return i;
}
}
for (int i = 1; i < result.groups(); i++) {
value = result.group(i);
if (value != null) {
break;
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/CSVDataSetBeanInfo.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
|
Method name: int getShareModeAsInt(String)
|
|
Method name: void process()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | for (int i = 0; i < SHARE_TAGS.length; i++) {↵ | | 1 | for (int i = 1; i < ↵
|
2 | if (SHARE_TAGS[i].equals(mode)) {↵ | | |
|
3 | return i;↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | 2 | result.groups(); i++) {↵
|
| | | 3 | value = result.group(i);↵
|
| | | 4 | if (value != null) {↵
|
| | | 5 | break;↵
|
| | | 6 | }↵
|
6 | } | | 7 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |