String getMatchNumberAsString() { return getPropertyAsString(MATCH_NUMBER); } /** * Sets the value of the variable if no matches are found * * @param defaultValue */ public void setDefaultValue(String defaultValue) { setProperty(DEFAULT, defaultValue); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); }
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/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
String getMatchNumberAsString() {
1
String get
2
		return getPropertyAsString(MATCH_NUMBER);
3
	}
4
	
2
Classname()
3
    {
4
        return getPropertyAsString(CLASSNAME);
5
    }
6
    
5
/**
7
    /**
6
	 * Sets the value of the variable if no matches are found
8
     * Set the string label used to create an instance of 
7
	 * 
8
	 * @param defaultValue
9
	
9
the
10
     * test with the string constructor.
11
     * @param constr
10
 */
12
     */
11
	public void setDefaultValue(String defaultValue) {
13
    public void set
12
		setProperty(DEFAULT, defaultValue);
13
	}
14
	public String getDefaultValue() {
15
		
14
ConstructorString(String constr)
15
    {
16
        setProperty(CONSTRUCTORSTRING,constr);
17
    }
18
    
19
    /**
20
     * get the string passed to the string constructor
21
     */
22
    public String getConstructorString()
23
    {
16
return getPropertyAsString(DEFAULT);
24
        return getPropertyAsString(
17
	
25
CONSTRUCTORSTRING);
18
}
26
    }
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