void setFileField(String value) { fileList = null; // Force rebuild setFileFieldProperty(value); } private void setFileFieldProperty(String value) { if (value == null) { throw new IllegalArgumentException("Value must not be null"); } setProperty(FILE_FIELD, value); } /** * The name parameter to be applied to the file * @deprecated Use getHTTPFiles() array instead */ public String getFileField() { checkCount("getFileField"); return getFileFieldProperty(); } private String getFileFieldProperty() { return getPropertyAsString(FILE_FIELD);
void setMimetype(String value) { fileList = null; // Force rebuild setMimetypeProperty(value); } private void setMimetypeProperty(String value) { if (value == null) { throw new IllegalArgumentException("Value must not be null"); } setProperty(MIMETYPE, value); } /** * @deprecated Use getHTTPFiles() array instead */ public String getMimetype() { checkCount("getMimetype"); return getMimetypeProperty(); } private String getMimetypeProperty() { return getPropertyAsString(MIMETYPE);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setFileField(String value) {
1
void setMimetype(String value) {
2
        fileList = null; // Force rebuild
2
        fileList = null; // Force rebuild
3
        setFileFieldProperty(value);
3
        setMimetypeProperty(value);
4
	}
4
    }
5
    private void setFileFieldProperty(String value) {
5
    private void setMimetypeProperty(String value) {
6
        if (value == null) {
6
        if (value == null) {
7
            throw new IllegalArgumentException("Value must not be null");
7
            throw new IllegalArgumentException("Value must not be null");
8
        }
8
        }
9
        setProperty(FILE_FIELD, value);
9
        setProperty(MIMETYPE, value);
10
    }
10
    }
11
    /**
11
    /**
12
     * The name parameter to be applied to the file
13
     * @deprecated Use getHTTPFiles() array instead
12
     * @deprecated Use getHTTPFiles() array instead
14
     */
13
     */
15
	public String getFileField() {
14
    public String getMimetype() {
16
        checkCount("getFileField");
15
        checkCount("get
17
		
16
Mimetype");
18
return getFileFieldProperty();
17
        return getMimetypeProperty();
19
	}
18
    }
20
    private String getFileFieldProperty() {
19
    private String getMimetypeProperty() {
21
        return getPropertyAsString(FILE_FIELD);
20
        return getPropertyAsString(MIMETYPE);
22
    
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