if (fileName != null) {
File inclFile = p.resolveFile(fileName);
if (!inclFile.exists()) {
throw new BuildException("Includesfile "
+ inclFile.getAbsolutePath()
+ " not found.");
}
readPatterns(inclFile, includeList, p);
}
if (fileName != null) {
File exclFile = p.resolveFile(fileName);
if (!exclFile.exists()) {
throw new BuildException("Excludesfile "
+ exclFile.getAbsolutePath()
+ " not found.");
}
readPatterns(exclFile, excludeList, p);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PatternSet.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PatternSet.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (fileName != null) {↵ | | 1 | if (fileName != null) {↵
|
2 | File inclFile = p.resolveFile(fileName);↵ | | 2 | File exclFile = p.resolveFile(fileName);↵
|
3 | if (!inclFile.exists()) {↵ | | 3 | if (!exclFile.exists()) {↵
|
4 | throw new BuildException("Includesfile "↵ | | 4 | throw new BuildException("Excludesfile "↵
|
5 | + inclFile.getAbsolutePath()↵ | | 5 | + exclFile.getAbsolutePath()↵
|
6 | + " not found.");↵ | | 6 | + " not found.");↵
|
7 | }↵ | | 7 | }↵
|
8 | readPatterns(inclFile, includeList, p);↵ | | 8 | readPatterns(exclFile, excludeList, p);↵
|
9 | } | | 9 | }
|
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.0 |
Clones location | |
Number of node comparisons | 0 |