String getPassword() { return getPropertyAsString(CREDENTIALS); } /** * set the number of iterations the sampler should aggregate * * @param count */ public void setIterations(String count) { setProperty(ITERATIONS, count); } /** * get the iterations as string * * @return the number of iterations */ public String getIterations() { return getPropertyAsString(ITERATIONS); }
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/jms/sampler/BaseJMSSampler.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 getPassword() {
1
String getClass
2
		
2
name()
3
    {
3
return getPropertyAsString(CREDENTIALS);
4
        return getPropertyAsString(C
4
	}
5
	
5
LASSNAME);
6
    }
7
    
6
/**
8
    /**
7
	 * set the number of iterations the sampler should aggregate
9
     * Set the 
8
	 * 
9
	
10
string label used to create an instance of the
11
     * test with the string constructor.
10
 * @param count
12
     * @param co
11
	
13
nstr
12
 */
14
     */
13
	public void setIterations(String count) {
15
    public void set
14
		setProperty(ITERATIONS, count);
15
	}
16
	
16
ConstructorString(String constr)
17
    {
18
        setProperty(CONSTRUCTORSTRING,constr);
19
    }
20
    
17
/**
21
    /**
18
	 * get the iterations as string
22
     * get the 
19
	 * 
20
	 * @return the number of iterations
21
	
23
string passed to the string constructor
22
 */
24
     */
23
	public String getIterations() {
25
    public String get
24
		
26
ConstructorString()
27
    {
25
return getPropertyAsString(ITERATIONS);
28
        return getPropertyAsString(
26
	
29
CONSTRUCTORSTRING);
27
}
30
    }
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