void setXmlData(String data) { setProperty(XML_DATA, data); } public String getXmlData() { return getPropertyAsString(XML_DATA); } /** * it's kinda obvious, but we state it anyways. Set the xml file with a * string path. * * @param filename */ public void setXmlFile(String filename) { setProperty(XML_DATA_FILE, filename); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/SoapSampler.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 setXmlData(String data) {
1
void set
2
		setProperty(XML_DATA, data);
3
	}
4
	public String getXmlData() {
5
		
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
5
    }
6
    /**
7
     * Gets the Classname attribute of the JavaConfig object
8
     *
9
     * @return  the Classname value
10
     */
11
    public String getClassname()
12
    {
6
return getPropertyAsString(XML_DATA);
13
        return getPropertyAsString(
7
	}
8
    /**
9
     * it's kinda obvious, but we state it anyways. Set the xml file with a
10
     * string path
14
CLASSNAME);
15
    }
16
    
17
    /**
18
     * Set the string label used to create an instance of the
11
.
19
     * test with the string constructor.
12
     *
20
     *
13
     * @param filename
21
 @param constr
14
     */
22
     */
15
    public void setXmlFile(String filename) {
23
    public void set
16
        setProperty(XML_DATA_FILE, filename
24
ConstructorString(String constr)
25
    {
17
);
26
        setProperty(CONSTRUCTORSTRING,constr);
18
    }
27
    }
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