void setMessageChoice(String choice) { setProperty(MESSAGE_CHOICE, choice); } /** * return the source of the message * */ public String getMessageChoice() { return getPropertyAsString(MESSAGE_CHOICE); } /** * set the input file for the publisher * * @param file */ public void setInputFile(String file) { setProperty(INPUT_FILE, file); } /** * return the path of the input file * */ public String getInputFile() { return getPropertyAsString(INPUT_FILE); }
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); }
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 setMessageChoice(String choice) {
1
void set
2
		
2
Classname(String classname)
3
    {
3
setProperty(MESSAGE_CHOICE, choice);
4
        setProperty(CLASSNAME, classname);
4
	}
5
    }
5
	/**
6
    /**
6
	 * return the source of the message
7
     * Gets the 
7
	 * 
8
	
8
Classname attribute of the JavaConfig object
9
     *
10
     * @return  the Classname value
9
 */
11
     */
10
	public String getMessageChoice() {
12
    public String get
11
		
13
Classname()
14
    {
12
return getPropertyAsString(MESSAGE_CHOICE);
15
        return getPropertyAsString(
13
	}
14
	
16
CLASSNAME);
17
    }
18
    
15
/**
19
    /**
16
	 * set the input file for the publisher
20
     * Set the string label used to create an instance of the
17
	 * 
18
	 * @param file
19
	
21
     * test with the string constructor.
22
     * @param constr
20
 */
23
     */
21
	public void setInputFile(String file) {
24
    public void set
22
		setProperty(INPUT_FILE, file);
23
	}
24
	
25
ConstructorString(String constr)
26
    {
27
        setProperty(CONSTRUCTORSTRING,constr);
28
    }
29
    
25
/**
30
    /**
26
	 * return the path of the input file
31
     * get the 
27
	 * 
28
	
32
string passed to the string constructor
29
 */
33
     */
30
	public String getInputFile() {
34
    public String get
31
		
35
ConstructorString()
36
    {
32
return getPropertyAsString(INPUT_FILE);
37
        return getPropertyAsString(
33
	
38
CONSTRUCTORSTRING);
34
}
39
    }
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