void setReadResponse(String read) { setProperty(READ_RESPONSE, read); } /** * return whether the sampler should read the response * * @return whether the sampler should read the response */ public String getReadResponse() { return getPropertyAsString(READ_RESPONSE); } /** * return whether the sampler should read the response as a boolean value * * @return whether the sampler should read the response as a boolean value */ public boolean getReadResponseAsBoolean() { return getPropertyAsBoolean(READ_RESPONSE); }
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); } /** * return the properties as boolean true/false. * * @return whether the sampler should use properties file instead of UI parameters. */ public boolean getUseJNDIPropertiesAsBoolean() { return getPropertyAsBoolean(USE_PROPERTIES_FILE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.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
void setReadResponse(String read) {
1
void setUseJNDIProperties(String properties) {
2
		setProperty(READ_RESPONSE, read);
2
		setProperty(USE_PROPERTIES_FILE, properties);
3
	}
3
	}
4
	/**
4
	/**
5
	 * return whether the sampler should read the response
5
	 * return whether the sampler should use properties file instead of UI
6
	 * parameters.
6
	 * 
7
	 * 
7
	 * @return whether the sampler should read the response
8
	 * @return  whether the sampler should use properties file instead of UI parameters.
8
	 */
9
	 */
9
	public String getReadResponse() {
10
	public String getUseJNDIProperties() {
10
		return getPropertyAsString(READ_RESPONSE);
11
		return getPropertyAsString(USE_PROPERTIES_FILE);
11
	}
12
	}
12
	/**
13
	/**
13
	 * return whether the sampler should read the response as a boolean value
14
	 * return the properties as boolean true/false.
14
	 * 
15
	 * 
15
	 * @return whether the sampler should read the response as a boolean value
16
	 * @return whether the sampler should use properties file instead of UI parameters.
16
	 */
17
	 */
17
	public boolean getReadResponseAsBoolean() {
18
	public boolean getUseJNDIPropertiesAsBoolean() {
18
		return getPropertyAsBoolean(READ_RESPONSE);
19
		return getPropertyAsBoolean(USE_PROPERTIES_FILE);
19
	}
20
	}
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