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