public boolean equals(Object other) { return other instanceof AddAsisRemove && getIndex() == ((AddAsisRemove) other).getIndex(); } /** * Hashcode depending on the index. * @return the index as the hashcode. */ public int hashCode() { return getIndex()
public boolean equals(Object other) { return other instanceof CrLf && getIndex() == ((CrLf) other).getIndex(); } /** * Hashcode depending on the index. * @return the index as the hashcode. */ public int hashCode() { return getIndex()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/FixCrLfFilter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/FixCrLfFilter.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public boolean equals(Object other) {
1
public boolean equals(Object other) {
2
            return other instanceof AddAsisRemove
2
            return other instanceof 
3
                    && getIndex() == ((AddAsisRemove) other).getIndex();
3
CrLf && getIndex() == ((CrLf) other).getIndex();
4
        }
4
        }
5
        /**
5
        /**
6
         * Hashcode depending on the index.
6
         * Hashcode depending on the index.
7
         * @return the index as the hashcode.
7
         * @return the index as the hashcode.
8
         */
8
         */
9
        public int hashCode() {
9
        public int hashCode() {
10
            return getIndex()
10
            return getIndex()
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