boolean isPerUser() { return getPropertyAsBoolean(PER_USER); } public void setVarName(String name) { setProperty(VAR_NAME, name); } public String getVarName() { return getPropertyAsString(VAR_NAME); }
boolean getReadResponseAsBoolean() { return getPropertyAsBoolean(READ_RESPONSE); } /** * if the sampler should use jndi.properties file, call the method with true * * @param properties */ public void setUseJNDIProperties(String properties) { setProperty(USE_PROPERTIES_FILE, properties); } /** * return whether the sampler should use properties file instead of UI * parameters. * * @return whether the sampler should use properties file instead of UI parameters. */ public String getUseJNDIProperties() { return getPropertyAsString(USE_PROPERTIES_FILE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean isPerUser() {
1
boolean getReadResponseAsBoolean() {
2
		return getPropertyAsBoolean(PER_USER);
2
		return getPropertyAsBoolean(READ_RESPONSE);
3
	}
3
	}
4
	public void setVarName(String name) {
4
	
5
		setProperty(VAR_NAME, name);
6
	}
5
/**
6
	 * if the sampler should use jndi.properties file, call the method with true
7
	 * 
8
	 * @param properties
9
	 */
10
	public void setUseJNDIProperties(String properties) {
11
		setProperty(USE_PROPERTIES_FILE, properties);
12
	}
13
	/**
14
	 * return whether the sampler should use properties file instead of UI
15
	 * parameters.
16
	 * 
17
	 * @return  whether the sampler should use properties file instead of UI parameters.
18
	 */
7
	public String getVarName() {
19
	public String getUseJNDIProperties() {
8
		return getPropertyAsString(VAR_NAME);
20
		return getPropertyAsString(USE_PROPERTIES_FILE);
9
	}
21
	}
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