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