if (dirContext == null) {
log.info("Cannot disconnect null context");
return;
}
try {
dirContext.close();
} catch (NamingException e) {
log.warn("Ldap client disconnect - ", e);
}
try {
if (sampleStore.size() != 0) {
sendBatch();
}
listener.testEnded(host);
} catch (RemoteException err) {
log.warn("testEnded(hostname)", err);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LdapExtClient.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/StatisticalSampleSender.java
|
Method name: void disconnect(DirContext)
|
|
Method name: void testEnded(String)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if (dirContext == null) {↵ | | |
|
2 | log.info("Cannot disconnect null context");↵ | | |
|
3 | return;↵ | | |
|
4 | }↵ | | |
|
|
5 | try {↵ | | |
|
6 | dirContext.close(↵ | | 1 | try {↵
|
| | | 2 | if (sampleStore.size() != 0) {↵
|
| | | 3 | sendBatch();↵
|
| | | 4 | }↵
|
7 | );↵ | | 5 | listener.testEnded(host);↵
|
8 | } catch (NamingException e) {↵ | | 6 | } catch (RemoteException err) {↵
|
9 | log.warn("Ldap client disconnect - ", e);↵ | | 7 | log.warn("testEnded(hostname)", err);↵
|
10 | } | | 8 | }
|
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 | 2 |