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).testEnded(); } }
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 notifyTestListenersOfEnd()
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).testEnded();
7
					}
6
				}
8
				}
7
			}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1