for (int i = 1; i < result.groups(); i++) {
value = result.group(i);
if (value != null) {
break;
}
}
if (subNode.isEnabled()) {
TestElement testElement = subNode.getTestElement();
if (testElement instanceof TestListener) {
((TestListener) testElement).testStarted();
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
|
Method name: void process()
|
|
Method name: void notifyTestListenersOfStart()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (int i = 1; i < result.groups(); i++) {↵ | | |
|
2 | value = result.group(i↵ | | 1 | if (subNode.isEnabled()) {↵
|
3 | );↵ | | 2 | TestElement testElement = subNode.getTestElement();↵
|
4 | if (value != null) {↵ | | 3 | if (↵
|
5 | break↵ | | 4 | testElement instanceof TestListener) {↵
|
6 | ;↵ | | 5 | ((TestListener) testElement).testStarted();↵
|
7 | }↵ | | 6 | }↵
|
8 | } | | 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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |