public synchronized void setParameters(Collection parameters) throws InvalidVariableException { log.debug("setParameter - Collection.size=" + parameters.size()); values = parameters.toArray(); if (log.isDebugEnabled()) { for (int i = 0; i < parameters.size(); i++) { log.debug("i:" + ((CompoundVariable) values[i]).execute()); } } checkParameterCount(parameters, 2); /* * Need to reset the containers for repeated runs; about the only way * for functions to detect that a run is starting seems to be the * setParameters() call. */ FileWrapper.clearAll();// TODO only clear the relevant entry - if possible...
public synchronized void setParameters(Collection parameters) throws InvalidVariableException { log.debug("setParameter - Collection.size=" + parameters.size()); values = parameters.toArray(); if (log.isDebugEnabled()) { for (int i = 0; i < parameters.size(); i++) { log.debug("i:" + ((CompoundVariable) values[i]).execute()); } } checkParameterCount(parameters, 2); /* * Need to reset the containers for repeated runs; about the only way * for functions to detect that a run is starting seems to be the * setParameters() call. */ XPathWrapper.clearAll();// TODO only clear the relevant entry - if possible...
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/CSVRead.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/XPath.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public synchronized void setParameters(Collection parameters) throws InvalidVariableException {
1
public synchronized void setParameters(Collection parameters) throws InvalidVariableException {
2
		log.debug("setParameter - Collection.size=" + parameters.size());
2
		log.debug("setParameter - Collection.size=" + parameters.size());
3
		values = parameters.toArray();
3
		values = parameters.toArray();
4
		if (log.isDebugEnabled()) {
4
		if (log.isDebugEnabled()) {
5
			for (int i = 0; i < parameters.size(); i++) {
5
			for (int i = 0; i < parameters.size(); i++) {
6
				log.debug("i:" + ((CompoundVariable) values[i]).execute());
6
				log.debug("i:" + ((CompoundVariable) values[i]).execute());
7
			}
7
			}
8
		}
8
		}
9
		checkParameterCount(parameters, 2);
9
		checkParameterCount(parameters, 2);
10
		/*
10
		/*
11
		 * Need to reset the containers for repeated runs; about the only way
11
		 * Need to reset the containers for repeated runs; about the only way
12
		 * for functions to detect that a run is starting seems to be the
12
		 * for functions to detect that a run is starting seems to be the
13
		 * setParameters() call.
13
		 * setParameters() call.
14
		 */
14
		 */
15
		FileWrapper.clearAll();// TODO only clear the relevant entry - if possible...
15
		XPathWrapper.clearAll();// TODO only clear the relevant entry - if possible...
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 location
Number of node comparisons0