public void setName(String name) { if (!isValidName(name)) { throw new BuildException( "Illegal name [" + name + "] for attribute"); } this.name = name.toLowerCase(Locale.US); } /** * @return the name of the attribute */ public String getName() { return name
public void setName(String name) { if (!isValidName(name)) { throw new BuildException( "Illegal name [" + name + "] for attribute"); } this.name = name.toLowerCase(Locale.US); } /** * @return the name of the attribute */ public String getName() { return name
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setName(String name) {
1
public void setName(String name) {
2
            if (!isValidName(name)) {
2
            if (!isValidName(name)) {
3
                throw new BuildException(
3
                throw new BuildException(
4
                    "Illegal name [" + name + "] for attribute");
4
                    "Illegal name [" + name + "] for attribute");
5
            }
5
            }
6
            this.name = name.toLowerCase(Locale.US);
6
            this.name = name.toLowerCase(Locale.US);
7
        }
7
        }
8
        /**
8
        /**
9
         * @return the name of the attribute
9
         * @return the name of the attribute
10
         */
10
         */
11
        public String getName() {
11
        public String getName() {
12
            return name
12
            return name
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