String getPass() { return getPropertyAsString(PASSWORD); } public synchronized void setPass(String pass) { setProperty(PASSWORD, pass); } public synchronized String getDomain() { return getPropertyAsString(DOMAIN); } public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); } public synchronized String getRealm() { return getPropertyAsString(REALM);
String getSuccessCode(){ return getPropertyAsString(SUCCESSCODE); } /** * set the succes code. the success code should * be unique. * @param code */ public 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/http/control/Authorization.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
String getPass() {
1
String getSuccessCode(){
2
		return getPropertyAsString(PASSWORD);
2
        return getPropertyAsString(
3
	}
4
	public synchronized void setPass(String pass) {
5
		
3
SUCCESSCODE);
4
    }
5
    /**
6
     * set the succes code. the success code should
7
     * be unique.
8
     * @param code
9
     */
10
    public void setSuccessCode(String code){
6
setProperty(PASSWORD, pass);
11
        setProperty(
7
	}
8
	public synchronized
12
SUCCESSCODE,code);
13
    }
14
    
15
    /**
16
     * get the failure message
17
     */
9
 String getDomain() {
18
    public String getFailure(){
10
		return getPropertyAsString(DOMAIN);
19
        return getPropertyAsString(
11
	}
12
	public synchronized
20
FAILURE);
21
    }
22
    /**
23
     * set the failure message
24
     * @param fail
25
     */
13
 void setDomain(String domain) {
26
    public void setFailure(String 
14
		
27
fail){
15
setProperty(DOMAIN, domain);
28
        setProperty(FAILURE,fail);
16
	}
17
	public synchronized String getRealm
29
    }
30
    
31
    /**
32
     * The failure code is used by other components
33
     */
18
() {
34
    public String getFailureCode(){
19
		return getPropertyAsString(REALM);
35
        return getPropertyAsString(
20
	
36
FAILURECODE);
37
    
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