boolean getAutoRedirects() { return getPropertyAsBoolean(AUTO_REDIRECTS); } public void setMethod(String value) { setProperty(METHOD, value); } public String getMethod() { return getPropertyAsString(METHOD); }
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/protocol/http/sampler/HTTPSamplerBase.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 getAutoRedirects() {
1
boolean get
2
        
2
ReadResponseAsBoolean() {
3
return getPropertyAsBoolean(AUTO_REDIRECTS);
3
		return getPropertyAsBoolean(
4
    }
5
	public void setMethod(String value) {
6
		setProperty(METHOD, value);
7
	}
4
READ_RESPONSE);
5
	}
6
	/**
7
	 * if the sampler should use jndi.properties file, call the method with true
8
	 * 
9
	 * @param properties
10
	 */
11
	public void setUseJNDIProperties(String properties) {
12
		setProperty(USE_PROPERTIES_FILE, properties);
13
	}
14
	/**
15
	 * return whether the sampler should use properties file instead of UI
16
	 * parameters.
17
	 * 
18
	 * @return  whether the sampler should use properties file instead of UI parameters.
19
	 */
8
	public String getMethod() {
20
	public String getUseJNDIProperties() {
9
		return getPropertyAsString(METHOD);
21
		return getPropertyAsString(USE_PROPERTIES_FILE);
10
	}
22
	}
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