addTest(ldap, res);
} else if (getPropertyAsString(TEST).equals(DELETE)) {
deleteTest(ldap, res);
if (getPropertyAsString(TEST).equals(MODIFY)) {
modifyTest(ldap, res);
} else if (getPropertyAsString(TEST).equals(SEARCHBASE)) {
searchTest(ldap, res);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
|
Method name: SampleResult sample(Entry)
|
|
Method name: SampleResult sample(Entry)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 4
|
|
1 | add↵ | | 1 | if (getPropertyAsString(TEST).equals(MODIFY)) {↵
|
2 | Test(ldap, res);↵ | | 2 | modifyTest(ldap, res);↵
|
3 | } else if (getPropertyAsString(TEST).equals(DELETE)) {↵ | | 3 | } else if (getPropertyAsString(TEST).equals(SEARCHBASE)) {↵
|
4 | deleteTest(ldap, res); | | 4 | searchTest(ldap, res);↵
|
| | | 5 | }
|
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 the same method |
Number of node comparisons | 0 |