void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING); }
void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME); } public void setDefaultValue(String val) { setProperty(DEFAULT, val); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/XPathExtractor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClassname(String classname)
1
void setRefName(String 
2
    {
3
        
2
refName) {
4
setProperty(CLASSNAME, classname);
3
		setProperty(REFNAME, refName);
5
    }
4
	}
6
    /**
7
     * Gets the Classname attribute of the JavaConfig object
8
     *
9
     * @return  the Classname value
10
     */
11
    public String getClassname()
12
    {
13
        
5
	public String getRefName() {
14
return getPropertyAsString(CLASSNAME);
6
		return getPropertyAsString(REFNAME);
15
    }
7
	}
16
    
8
    
17
    /**
9
    
18
     * Set the string label used to create an instance of the
19
     * test with the string constructor.
20
     * @param constr
21
     */
22
    public void setConstructorString(String constr)
23
    {
24
        setProperty(CONSTRUCTORSTRING,constr);
25
    }
26
    
27
    /**
28
     * get the string passed to the string constructor
29
     */
30
    public String getConstructorString()
31
    {
32
        
10
public void setDefaultValue(String val) {
11
		setProperty(DEFAULT, val);
12
	}
13
	public String getDefaultValue() {
33
return getPropertyAsString(CONSTRUCTORSTRING);
14
		return getPropertyAsString(
34
    
15
DEFAULT);
35
}
16
	}
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