public void setAlgorithm(String algorithm) { this.algorithm = algorithm; } /** * Sets the MessageDigest algorithm provider to be used * to calculate the checksum. * @param provider a <code>String</code> value */ public void setProvider(String provider) { this.provider = provider
public void setAlgorithm(String algorithm) { this.algorithm = algorithm; } /** * Sets the MessageDigest algorithm provider to be used * to calculate the checksum. * @param provider provider to use */ public void setProvider(String provider) { this.provider = provider
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Checksum.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setAlgorithm(String algorithm) {
1
public void setAlgorithm(String algorithm) {
2
        this.algorithm = algorithm;
2
        this.algorithm = algorithm;
3
    }
3
    }
4
    /**
4
    /**
5
     * Sets the MessageDigest algorithm provider to be used
5
     * Sets the MessageDigest algorithm provider to be used
6
     * to calculate the checksum.
6
     * to calculate the checksum.
7
     * @param provider a <code>String</code> value
7
     * @param provider provider to use
8
     */
8
     */
9
    public void setProvider(String provider) {
9
    public void setProvider(String provider) {
10
        this.provider = provider
10
        this.provider = provider
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