public static final class Option { private String name; private String value; /** Constructor for Option */ public Option() { //default } /** * Get the name attribute. * @return the name attribute. */ public String getName() { return name; } /** * Set the name attribute. * @param name the name of the option. */ public void setName(String name) { this.name = name; } /** * Get the value attribute. * @return the value attribute. */ public String getValue() { return value; } /** * Set the value attribute. * @param value the value of the option. */ public void setValue(String value) { this.value = 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/Apt.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 static final class Option {
1
public class Header {
2
        private String name;
2
    private String name;
3
        private String value;
3
    private String value;
4
        /** Constructor for Option */
4
    /**
5
        public Option() {
6
            //default
7
        }
8
        /**
9
         * Get the name attribute
10
.
5
     * Set the name of this Header.
11
         * @return the name attribute.
6
     
12
   
7
* @param name the name to set.
13
      */
8
     */
14
        public String getName() {
9
    public void setName(String name) {
15
            return name;
10
        this.name = name;
16
        }
11
    
17
   
12
}
18
     /**
13
    /**
19
         * Set the name attribute.
14
     * Get the name of this Header.
20
         * @param name the name of the option.
15
     
21
    
16
* @return name as String.
22
     */
17
     */
23
        public void setName(String name) {
18
    public String getName() {
24
            this.name = name;
19
        return name;
25
        }
20
    }
26
        /**
21
    
27
    
22
/**
28
     * Get the value attribute.
23
     * Set the value 
29
         * @return
24
of this Header.
30
 the value attribute.
25
     * @param value the value to set.
31
         */
26
     */
32
        public String getValue() {
27
    public void setValue(String value) {
33
            return value;
28
        this.value = value;
34
        }
29
    }
35
        /**
30
    /**
36
         * Set the value attribute.
31
     * Get the value 
37
         * @param value the value of the option.
38
    
32
of this Header.
33
     * @return value as String.
39
     */
34
     */
40
        public void setValue(String value) {
35
    public String getValue() {
41
            this.value = value;
36
        return value;
42
        
37
    
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