String getDomain() { return getPropertyAsString(DOMAIN); } public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); } public synchronized String getRealm() { return getPropertyAsString(REALM); } public synchronized void setRealm(String realm) { setProperty(REALM, realm); }
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); } /** * Provide some unique code to denote a type of failure * @param code */ public void setFailureCode(String code){ setProperty(FAILURECODE,code); }
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 getDomain() {
1
String getFailure(){
2
		return getPropertyAsString(DOMAIN);
2
        return getPropertyAsString(
3
	}
4
	public synchronized
3
FAILURE);
4
    }
5
    /**
6
     * set the failure message
7
     * @param fail
8
     */
5
 void setDomain(String domain) {
9
    public void setFailure(String 
6
		
10
fail){
7
setProperty(DOMAIN, domain);
11
        setProperty(FAILURE,fail);
8
	}
9
	public synchronized String getRealm
12
    }
13
    
14
    /**
15
     * The failure code is used by other components
16
     */
10
() {
17
    public String getFailureCode(){
11
		return getPropertyAsString(REALM);
18
        return getPropertyAsString(
12
	}
13
	public synchronized void setRealm(String realm) {
14
		setProperty(REALM, realm);
15
	
19
FAILURECODE);
20
    }
21
    
22
    /**
23
     * Provide some unique code to denote a type of failure
24
     * @param code
25
     */
26
    public void setFailureCode(String code){
27
        setProperty(FAILURECODE,code);
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