if (isIncluded(currentelement) && currentelement.length() > 0) { accountForIncludedDir(currentelement, myfile, true); } else { if (currentelement.length() > 0) { if (currentelement.charAt(currentelement .length() - 1) != File.separatorChar) { currentelement = currentelement + File.separatorChar; } } scandir(myfile, currentelement, true); }
if (isIncluded(currentelement) && currentelement.length() > 0) { accountForIncludedDir(currentelement, myfile, true); } else { if (currentelement.length() > 0) { if (currentelement.charAt(currentelement .length() - 1) != File.separatorChar) { currentelement = currentelement + File.separatorChar; } } scandir(myfile.getAbsolutePath(), currentelement, true); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (isIncluded(currentelement)
1
if (isIncluded(currentelement)
2
                            && currentelement.length() > 0) {
2
                                && currentelement.length() > 0) {
3
                            accountForIncludedDir(currentelement, myfile, true);
3
                                accountForIncludedDir(currentelement, myfile, true);
4
                        }  else {
4
                            }  else {
5
                            if (currentelement.length() > 0) {
5
                                if (currentelement.length() > 0) {
6
                                if (currentelement.charAt(currentelement
6
                                    if (currentelement.charAt(currentelement
7
                                                          .length() - 1)
7
                                                              .length() - 1)
8
                                    != File.separatorChar) {
8
                                        != File.separatorChar) {
9
                                    currentelement =
9
                                        currentelement =
10
                                        currentelement + File.separatorChar;
10
                                            currentelement + File.separatorChar;
11
                                }
11
                                
12
    }
12
                            }
13
                                }
13
                            scandir(myfile, currentelement, true);
14
                                scandir(myfile.getAbsolutePath(), currentelement, true);
14
                        }
15
                            }
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