void setErrorCode(String code){ setProperty(ERRORCODE,code); } /** * return the comma separated string for the filter */ public String getFilterString(){ return getPropertyAsString(FILTER); } /** * set the filter string in comman separated format * @param text */ public void setFilterString(String text){ setProperty(FILTER,text); }
void setXAxis(String field) { setProperty(REPORT_CHART_X_AXIS,field); } public String getYAxis() { return getPropertyAsString(REPORT_CHART_Y_AXIS); } public void setYAxis(String scale) { setProperty(REPORT_CHART_Y_AXIS,scale); }
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/testelement/AbstractChart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setErrorCode(String code){
1
void setXAxis(String field) {
2
        setProperty(ERRORCODE,code);
2
    	setProperty(
3
    }
4
    
5
    /**
6
     * return the comma separated string for the filter
7
     */
3
REPORT_CHART_X_AXIS,field);
4
    }
5
    
8
    public String getFilterString(){
6
    public String getYAxis() {
9
        return getPropertyAsString(FILTER);
7
    	return getPropertyAsString(REPORT_CHART_Y_AXIS);
10
    }
8
    }
11
    
9
    
12
    /**
13
     * set the filter string in comman separated format
14
     * @param text
15
     */
16
    public void setFilterString(String text){
10
    public void set
17
   
11
YAxis(String scale) {
18
     setProperty(FILTER,text);
12
    	setProperty(REPORT_CHART_Y_AXIS,scale);
19
    }
13
    }
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