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);
void setRegex(String regex) { setProperty(REGEX, regex); } public String getRegex() { return getPropertyAsString(REGEX); } public void setRefName(String refName) { setProperty(REFNAME, refName);
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/extractor/RegexExtractor.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
    }
5
    /**
6
     * Gets the Classname attribute of the JavaConfig object
7
     *
8
     * @return  the Classname value
9
     */
10
    public String getClassname()
11
    {
12
        return getPropertyAsString(CLASSNAME);
13
    }
14
    
15
    /**
16
     * Set the string label used to create an instance of the
17
     * test with the string constructor.
18
     * @param constr
19
     */
20
    public void setConstructorString(String constr)
21
    {
22
        setProperty(CONSTRUCTORSTRING,constr);
23
    
2
Regex(String regex) {
3
		setProperty(REGEX, regex);
4
	}
5
	public String getRegex() {
6
		return getPropertyAsString(REGEX);
7
	}
8
	public void setRefName(String refName) {
9
		setProperty(REFNAME, refName);
10
	
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