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