boolean isMonitor() { return this.getPropertyAsBoolean(MONITOR); } public void setImplementation(String value) { this.setProperty(IMPLEMENTATION, value); } public String getImplementation() { return this.getPropertyAsString(IMPLEMENTATION);
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 isMonitor() {
1
boolean getReadResponseAsBoolean() {
2
		return this.getPropertyAsBoolean(MONITOR);
2
		return getPropertyAsBoolean(
3
	}
4
    public void setImplementation(String value) {
5
        this.setProperty(IMPLEMENTATION, value);
6
    }
7
    public String getImplementation() {
8
        
3
READ_RESPONSE);
4
	}
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
	 */
19
	public String getUseJNDIProperties() {
9
return this.getPropertyAsString(IMPLEMENTATION);
20
		return getPropertyAsString(
10
    
21
USE_PROPERTIES_FILE);
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