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 setXPathQuery(String val){ setProperty(XPATH_QUERY,val); } public String getXPathQuery(){ return getPropertyAsString(XPATH_QUERY); } public void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME); }
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 set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    }
2
XPathQuery(String val){
3
        setProperty(XPATH_QUERY,val);   
5
    /**
4
    }
6
     * Gets the Classname attribute of the JavaConfig object
5
    
7
     *
8
     * @return  the Classname value
9
     */
10
    public String getClassname()
6
    public String get
11
    {
7
XPathQuery(){
12
        return getPropertyAsString(CLASSNAME);
8
        return getPropertyAsString(XPATH_QUERY);
13
    }
9
    }
14
    
10
  
15
    /**
16
     * Set the string label used to create an instance of the
17
     * test with the string constructor.
18
     * @param constr
19
     */
20
    public void setConstructorString(String constr)
21
    {
22
        setProperty(CONSTRUCTORSTRING,constr);
23
    }
24
    
25
    /**
26
     * get the string passed to the string constructor
27
     */
28
    public String getConstructorString()
29
    {
30
        
11
	public void setRefName(String refName) {
12
		setProperty(REFNAME, refName);
13
	}
14
	public String getRefName() {
31
return getPropertyAsString(CONSTRUCTORSTRING);
15
		return getPropertyAsString(
32
    
16
REFNAME);
33
}
17
	}
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