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;
public static final class Property { private String name; private String value; /** * accessor to the name of the property * @return name of the property */ public String getName() { return name; } /** * setter for the name of the property * @param name name of the property */ public void setName(String name) { this.name = name; } /** * getter for the value of the property * @return value of the property */ public String getValue() { return value; } /** * sets the value of the property * @param value value of the property */ public void setValue(String value) { this.value = value;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/email/Header.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Header {
1
public 
2
static final class Property {
2
    private String name;
3
        private String name;
3
    private String value;
4
        private String value;
4
    /**
5
        /**
5
     * Set the name of this Header.
6
       
7
  * accessor to the name of the property
6
     * @param name the name to set.
8
         * @return name of the 
9
property
7
     */
10
         */
8
    public void setName(String name) {
11
        public String getName() {
9
        this.name = name;
12
            return name;
10
    }
13
    
14
    }
11
    /**
15
        /**
12
     * Get the name of this Header.
16
         * setter for the name of th
13
     * @return name as String.
14
     */
15
    public 
17
e property
18
         * @param name name of the property
19
         */
16
String getName() {
20
        public void setName(String name) {
17
        return name;
21
            this.name = name;
18
    }
22
        }
19
    /**
23
        /**
20
     * Set the value of this Header.
24
         * getter for the value of th
25
e property
21
     * @param value the value to set.
26
         * @return value of the 
27
property
22
     */
28
         */
23
    public void setValue(String value) {
29
        public String getValue() {
24
        this.value = value;
30
            return value;
25
    }
31
        }
26
    /**
32
        /**
27
     * Get the value of this Header.
33
         * sets the value of th
34
e property
28
     * @return value as String.
35
         * @param value 
36
value of the property
29
     */
37
         */
30
    public String getValue() {
38
        public void setValue(String value) {
31
        return value;
39
            this.value = value;
32
    
40
        
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