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