if (log.isDebugEnabled() & !isNegated()) { for (int i = 0; i < nodeList.getLength(); i++){ log.debug(new StringBuffer("nodeList[").append(i).append("] ").append(nodeList.item(i)).toString()); } }
if (result != null) { for (int x = 0; x < result.groups(); x++) { vars.put(namep + "_g" + x, result.group(x)); //$NON-NLS-1$ } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/XPathAssertion.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/RegexFunction.java
Method name: AssertionResult getResult(SampleResult) Method name: void saveGroups(MatchResult, String, JMeterVariables)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (log.isDebugEnabled() & !isNegated()) {
1
if (result != null) {
2
			for (int i = 0; i < nodeList.getLength(); i++){
2
			for (int x = 0; x < result.groups(); x++) {
3
			    log.debug(new StringBuffer("nodeList[").append(i).append("] ").append(nodeList.item(i)).toString());
3
				vars.put(namep + "_g" + x, result.group(x)); //$NON-NLS-1$
4
			}
4
			}
5
		}
5
		}
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.3
Clones locationClones are in different classes
Number of node comparisons1