if (factory != null) {
try {
return qfactory.createQueueConnection();
} catch (JMSException e) {
log.error(e.getMessage());
}
}
if (wait > 0) {
try {
Thread.sleep(wait);
} catch (InterruptedException e1) {
// ignore
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/client/ConnectionFactory.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/stubs/TestSampler.java
|
Method name: QueueConnection getQueueConnection(Context, String)
|
|
Method name: SampleResult sample(Entry)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (factory != null) {↵ | | 1 | if (wait > 0) {↵
|
2 | try {↵ | | 2 | try {↵
|
3 | return qfactory.createQueueConnection();↵ | | 3 | Thread.sleep(wait);↵
|
4 | } catch (JMSException e) {↵ | | 4 | } catch (InterruptedException e1) {↵
|
5 | log.error(e.getMessage());↵ | | 5 | // ignore↵
|
6 | }↵ | | 6 | }↵
|
7 | } | | 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 |