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