if (attributeSetters.get(propName) != null) { if (java.lang.String.class.equals(args[0])) { /* Ignore method m, as there is an overloaded form of this method that takes in a non-string argument, which gains higher priority. */ continue; } /* If the argument is not a String or Location, and if there is an overloaded form of this method already defined, we just override that with the new one. This mechanism does not guarantee any specific order in which the methods will be selected: so any code that depends on the order in which "set" methods have been defined, is not guaranteed to be selected in any particular order. */ }
if (basedir != null && !SelectorUtils.matchPatternStart(includes[i], basedir.getAbsolutePath(), isCaseSensitive())) { continue; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/IntrospectionHelper.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java
Method name: void IntrospectionHelper(Class) Method name: void checkIncludePatterns()
Number of AST nodes: 3 Number of AST nodes: 2
1
if (attributeSetters.get(propName) != null) {
1
if (basedir != null
2
                    if (java.lang.String.class.equals(args[0])) {
2
                    
3
                        /*
4
                            Ignore method m, as there is an overloaded
5
                            form of this method that takes in a
6
                            non-string argument, which gains higher
7
                            priority.
8
                        */
9
                        continue;
10
                    }
11
                    /*
12
                        If the argument is not a String or Location,
13
                        and if there
14
                        is an overloaded form of this method already defined,
15
                        we just override that with the new one.
16
                        This mechanism does not guarantee any specific order
17
                        in which the methods will be selected: so any code
18
                        that depends on the order in which "set" methods have
19
                        been defined, is not guaranteed to be selected in any
20
                        particular order.
21
                    */
3
&& !SelectorUtils.matchPatternStart(includes[i],
4
                    basedir.getAbsolutePath(), isCaseSensitive())) {
5
                    continue;
22
                }
6
                }
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.1
Clones locationClones are in different classes
Number of node comparisons1