if (getJars && element.isDirectory()) {
// add any jars in the directory
URL[] dirURLs = Locator.getLocationURLs(element);
for (int j = 0; j < dirURLs.length; ++j) {
libPathURLs.add(dirURLs[j]);
}
}
if (s.length > 0) {
NoneSelector ns = new NoneSelector();
for (int i = 0; i < s.length; i++) {
ns.appendSelector(s[i]);
}
fs.appendSelector(ns);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/launch/Launcher.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Sync.java
|
Method name: void addPath(String, boolean, List)
|
|
Method name: int[] removeOrphanFiles(Set, File)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | if (getJars && element.isDirectory()) {↵ | | 1 | if (↵
|
2 | // add any jars in the directory↵ | | |
|
3 | URL[] dirURLs = Locator.getLocationURLs(element↵ | | 2 | s.length > 0) {↵
|
4 | );↵ | | 3 | NoneSelector ns = new NoneSelector();↵
|
5 | for (int j = 0; j < dirURLs.length; ++j) {↵ | | 4 | for (int i = 0; i < s.length; i++) {↵
|
6 | libPathURLs.add(dirURLs[j]);↵ | | 5 | ns.appendSelector(s[i]);↵
|
7 | }↵ | | 6 | }↵
|
| | | 7 | fs.appendSelector(ns);↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |