if (pauseButton.isSelected()) {
action = TestAction.PAUSE;
durationField.setEnabled(true);
}
Object objfac = ctx.lookup(fac);
if (objfac instanceof QueueConnectionFactory) {
qfactory = (QueueConnectionFactory) objfac;
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/sampler/gui/TestActionGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/client/ConnectionFactory.java
|
Method name: void stateChanged(ChangeEvent)
|
|
Method name: QueueConnectionFactory getQueueConnectionFactory(Context, String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (pauseButton.isSelected()↵ | | 1 | Object objfac = ctx.lookup(fac);↵
|
2 | ) {↵ | | 2 | if (objfac instanceof QueueConnectionFactory) {↵
|
3 | action = TestAction.PAUSE;↵ | | 3 | qfact↵
|
4 | durationField.setEnabled(true);↵ | | 4 | ory = (QueueConnectionFactory) objfac;↵
|
5 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |