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 setRandomPath(String path) { setProperty(RANDOM_PATH, path); } /** * return the random path for messages * */ public String getRandomPath() { return getPropertyAsString(RANDOM_PATH); } /** * set the text for the message * * @param message */ public void setTextMessage(String message) { setProperty(TEXT_MSG, message); } /** * return the text for the message * */ public String getTextMessage() { return getPropertyAsString(TEXT_MSG);
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/protocol/jms/sampler/PublisherSampler.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
RandomPath(String path) {
3
		setProperty(RANDOM_PATH, path);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * return the 
8
     *
9
     * @return  the Classname value
10
    
7
random path for messages
8
	 * 
11
 */
9
	 */
12
    public String getClassname()
10
	public String get
13
    {
14
        return getPropertyAsString(CLASSNAME);
15
    }
16
    
17
    
11
RandomPath() {
12
		return getPropertyAsString(RANDOM_PATH);
13
	}
18
/**
14
	/**
19
     * Set the string label used to create an instance of the
15
	 * set the 
20
     * test with the string constructor.
21
     * @param constr
22
    
16
text for the message
17
	 * 
18
	 * @param message
23
 */
19
	 */
24
    public void setConstructorString(String constr)
20
	public void set
25
    {
26
        setProperty(CONSTRUCTORSTRING,constr);
27
    }
28
    
29
    
21
TextMessage(String message) {
22
		setProperty(TEXT_MSG, message);
23
	}
30
/**
24
	/**
31
     * get the string passed to the string constructor
25
	 * return the 
32
    
26
text for the message
27
	 * 
33
 */
28
	 */
34
    public String getConstructorString()
29
	public String get
35
    {
36
        
30
TextMessage() {
37
return getPropertyAsString(CONSTRUCTORSTRING);
31
		return getPropertyAsString(TEXT_MSG);
38
    
32
	
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