Object objfac = ctx.lookup(fac);
if (objfac instanceof QueueConnectionFactory) {
qfactory = (QueueConnectionFactory) objfac;
}
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/protocol/jms/client/ConnectionFactory.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
|
Method name: QueueConnectionFactory getQueueConnectionFactory(Context, String)
|
|
Method name: void process()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | Object objfac = ctx.lookup(fac);↵ | | |
|
2 | if (objfac instanceof QueueConnectionFactory) {↵ | | |
|
3 | qfactory = (QueueConnectionFactory) objfac;↵ | | 1 | for (int i = 1; i < result.groups(); i++) {↵
|
| | | 2 | value = result.group(i);↵
|
| | | 3 | if (value != null) {↵
|
| | | 4 | break;↵
|
| | | 5 | }↵
|
4 | } | | 6 | }
|
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 different classes |
Number of node comparisons | 1 |