public class DocletParam { /** The parameter name */ private String name; /** The parameter value */ private String value; /** * Set the name of the parameter. * * @param name the name of the doclet parameter */ public void setName(String name) { this.name = name; } /** * Get the parameter name. * * @return the parameter's name. */ public String getName() { return name; } /** * Set the parameter value. * * Note that only string values are supported. No resolution of file * paths is performed. * * @param value the parameter value. */ public void setValue(String value) { this.value = value; } /** * Get the parameter value. * * @return the parameter value. */ public String getValue() { return value;
public class Header { private String name; private String value; /** * Set the name of this Header. * @param name the name to set. */ public void setName(String name) { this.name = name; } /** * Get the name of this Header. * @return name as String. */ public String getName() { return name; } /** * Set the value of this Header. * @param value the value to set. */ public void setValue(String value) { this.value = value; } /** * Get the value of this Header. * @return value as String. */ public String getValue() { return value;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/email/Header.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class DocletParam {
1
public class 
2
        /** The parameter name */
3
        private String name;
4
        /** The parameter value */
5
    
2
Header {
3
    private String name;
6
    private String value;
4
    private String value;
7
        /**
5
    /**
8
         * Set the name of the parameter.
6
     * Set the name of th
9
         *
10
    
7
is Header.
11
     * @param name the name of the doclet parameter
8
     * @param name the name 
12
   
9
to set.
13
      */
10
     */
14
        public void setName(String name) {
11
    public void setName(String name) {
15
            this.name = name;
12
        this.name = name;
16
        }
13
    }
17
        /**
14
    /**
18
         * Get the parameter name.
15
     * Get the 
19
         *
20
    
16
name of this Header.
21
     * @return the parameter's name.
17
     * @return 
22
  
18
name as String.
23
       */
19
     */
24
        public String getName() {
20
    public String getName() {
25
            return name;
21
        return name;
26
        }
22
    
27
   
23
}
28
     /**
24
    /**
29
         * Set the parameter value.
25
     * Set the 
30
         *
31
         * Note that only string values are supported. No resolution of file
32
         * paths is performed.
33
         *
34
    
26
value of this Header.
35
     * @param value the parameter value.
27
     * @param value the 
36
    
28
value to set.
37
     */
29
     */
38
        public void setValue(String value) {
30
    public void setValue(String value) {
39
            this.value = value;
31
        this.value = value;
40
        }
32
    }
41
        /**
33
    /**
42
         * Get the parameter value.
34
     * Get the 
43
         *
44
         * @return the parameter value
35
value of this Header.
45
.
36
     * @return value as String.
46
         */
37
     
47
    
38
*/
48
    public String getValue() {
39
    public String getValue() {
49
            return value;
40
        return value;
50
        
41
    
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