String getFilename() { return getPropertyAsString(FILENAME); } public void setRequestData(String newRequestData) { this.setProperty(REQUEST, newRequestData); } public String getRequestData() { return getPropertyAsString(REQUEST); }
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/tcp/sampler/TCPSampler.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 getFilename() {
1
String getClassname()
2
		
2
    {
3
return getPropertyAsString(FILENAME);
3
        return getPropertyAsString(CLASSNAME);
4
	}
5
	public void setRequestData(String newRequestData) {
6
		this.setProperty(REQUEST, newRequestData);
7
	}
8
	public String getRequestData() {
9
		
4
    }
5
    
6
    /**
7
     * Set the string label used to create an instance of the
8
     * test with the string constructor.
9
     * @param constr
10
     */
11
    public void setConstructorString(String constr)
12
    {
13
        setProperty(CONSTRUCTORSTRING,constr);
14
    }
15
    
16
    /**
17
     * get the string passed to the string constructor
18
     */
19
    public String getConstructorString()
20
    {
10
return getPropertyAsString(REQUEST);
21
        return getPropertyAsString(
11
	
22
CONSTRUCTORSTRING);
12
}
23
    }
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