public void setFormat(FormatAttribute ea) { format = ea.getValue(); } /** * A enumerated type for the format attribute. * The values are "xml" and "text". */ public static class FormatAttribute extends EnumeratedAttribute { private String [] formats = new String[]{"xml", "text"}; /** * @see EnumeratedAttribute#getValues() * @return accepted values */ public String[] getValues() { return formats
public void setFormat(FormatAttribute ea) { format = ea.getValue(); } /** * A class for the enumerated attribute format, * values are xml and text. * @see EnumeratedAttribute */ public static class FormatAttribute extends EnumeratedAttribute { private String [] formats = new String[]{"xml", "text"}; /** * @return the enumerated values */ public String[] getValues() { return formats
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/EchoProperties.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setFormat(FormatAttribute ea) {
1
public void setFormat(FormatAttribute ea) {
2
        format = ea.getValue();
2
        format = ea.getValue();
3
    }
3
    }
4
    /**
4
    /**
5
     * A enumerated type for the format attribute.
5
     * A class for the enumerated attribute format,
6
     * The values are "xml" and "text".
6
     * values are xml and text.
7
     * @see EnumeratedAttribute
7
     */
8
     */
8
    public static class FormatAttribute extends EnumeratedAttribute {
9
    public static class FormatAttribute extends EnumeratedAttribute {
9
        private String [] formats = new String[]{"xml", "text"};
10
        private String [] formats = new String[]{"xml", "text"};
10
        /**
11
        /**
11
         * @see EnumeratedAttribute#getValues()
12
         * @
12
         * @return accepted values
13
return the enumerated values
13
         */
14
         */
14
        public String[] getValues() {
15
        public String[] getValues() {
15
            return formats
16
            return formats
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