void setFilename(String newFilename) { this.setProperty(FILENAME, newFilename); } public String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript); } public String getParameters() { return this.getPropertyAsString(PARAMETERS); }
void setSuccessCode(String code){ setProperty(SUCCESSCODE,code); } /** * get the failure message */ public String getFailure(){ return getPropertyAsString(FAILURE); } /** * set the failure message * @param fail */ public void setFailure(String fail){ setProperty(FAILURE,fail); } /** * The failure code is used by other components */ public String getFailureCode(){ return getPropertyAsString(FAILURECODE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setFilename(String newFilename) {
1
void setSuccessCode(String code){
2
		this.setProperty(FILENAME, newFilename);
2
        setProperty(
3
	}
4
	
3
SUCCESSCODE,code);
4
    }
5
    
6
    /**
7
     * get the failure message
8
     */
5
public String getScript() {
9
    public String getFailure(){
6
		return this.getPropertyAsString(SCRIPT);
10
        return getPropertyAsString(
7
	}
8
	
11
FAILURE);
12
    }
13
    /**
14
     * set the failure message
15
     * @param fail
16
     */
9
public void setScript(String newScript) {
17
    public void setFailure(String 
10
		this.setProperty(SCRIPT, newScript);
11
	}
12
	
18
fail){
19
        setProperty(FAILURE,fail);
20
    }
21
    
22
    /**
23
     * The failure code is used by other components
24
     */
13
public String getParameters() {
25
    public String getFailureCode(){
14
		return this.getPropertyAsString(PARAMETERS);
26
        return getPropertyAsString(
15
	
27
FAILURECODE);
16
}
28
    }
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