String getXLabel() { return getPropertyAsString(REPORT_CHART_X_LABEL); } /** * The X data labels should be either the filename, date or some * other series of values * @param label */ public void setXLabel(String label) { setProperty(REPORT_CHART_X_LABEL,label); } public String getYLabel() { return getPropertyAsString(REPORT_CHART_Y_LABEL); }
String getSuccessCode(){ return getPropertyAsString(SUCCESSCODE); } /** * set the succes code. the success code should * be unique. * @param code */ public void setSuccessCode(String code){ setProperty(SUCCESSCODE,code); } /** * get the failure message */ public String getFailure(){ return getPropertyAsString(FAILURE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.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 getXLabel() {
1
String getSuccessCode(){
2
    	return getPropertyAsString(REPORT_CHART_X_LABEL);
2
        return getPropertyAsString(SUCCESSCODE);
3
    }
3
    }
4
    
5
    /**
4
    /**
6
     * The X data labels should be either the filename, date or some
5
     * 
7
     * other series of val
6
set the succes code. the success code should
8
ues
7
     * be unique.
9
     * @param label
8
     * @param code
10
     */
9
     */
11
    public void setXLabel(String label) {
10
    public void set
11
SuccessCode(String code){
12
    	setProperty(REPORT_CHART_X_LABEL,label);
12
        setProperty(
13
    }
14
    
13
SUCCESSCODE,code);
14
    }
15
    
16
    /**
17
     * get the failure message
18
     */
15
    public String getYLabel() {
19
    public String getFailure(){
16
    	return getPropertyAsString(REPORT_CHART_Y_LABEL);
20
        return getPropertyAsString(FAILURE);
17
    }
21
    }
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