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);
boolean getAutoRedirects() { return getPropertyAsBoolean(AUTO_REDIRECTS); } public void setMethod(String value) { setProperty(METHOD, value); } public String getMethod() { return getPropertyAsString(METHOD);
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/http/sampler/HTTPSamplerBase.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean getReadResponseAsBoolean() {
1
boolean get
2
		
2
AutoRedirects() {
3
return getPropertyAsBoolean(READ_RESPONSE);
3
        return getPropertyAsBoolean(
4
	}
5
	/**
6
	 * if the sampler should use jndi.properties file, call the method with true
7
	 * 
8
	 * @param properties
9
	 */
4
AUTO_REDIRECTS);
5
    }
10
	public void setUseJNDIProperties(String properties) {
6
	public void set
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
	 */
19
	public String getUseJNDIProperties
7
Method(String value) {
8
		setProperty(METHOD, value);
9
	}
20
() {
10
	public String getMethod() {
21
		return getPropertyAsString(USE_PROPERTIES_FILE);
11
		return getPropertyAsString(METHOD);
22
	
12
	
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