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 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/Apt.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 static final class Option {
1
public static final class Property {
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.
5
         * accessor to the name of the property
10
         * @return the name attribute.
6
         * @return name of the property
11
         */
7
         */
12
        public String getName() {
8
        public String getName() {
13
            return name;
9
            return name;
14
        }
10
        }
15
        /**
11
        /**
16
         * Set the name attribute.
12
         * setter for the name of the property
17
         * @param name the name of the option.
13
         * @param name name of the property
18
         */
14
         */
19
        public void setName(String name) {
15
        public void setName(String name) {
20
            this.name = name;
16
            this.name = name;
21
        }
17
        }
22
        /**
18
        /**
23
         * Get the value attribute.
19
         * getter for the value of the property
24
         * @return the value attribute.
20
         * @return value of the property
25
         */
21
         */
26
        public String getValue() {
22
        public String getValue() {
27
            return value;
23
            return value;
28
        }
24
        }
29
        /**
25
        /**
30
         * Set the value attribute.
26
         * sets the value of the property
31
         * @param value the value of the option.
27
         * @param value value of the property
32
         */
28
         */
33
        public void setValue(String value) {
29
        public void setValue(String value) {
34
            this.value = value;
30
            this.value = value;
35
        
31
        
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