if ((i = path.lastIndexOf(File.pathSeparator)) != -1) {
if (path.length() > File.pathSeparator.length()) {
new File(path.substring(0, i)).mkdirs();
}
}
if (srcFile.lastModified()
> info.absoluteFile.lastModified()) {
outOfDateClasses.put(className, className);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessageBySftp.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
|
Method name: void getFile(ChannelSftp, ChannelSftp.LsEntry, File)
|
|
Method name: void scanDir(File, String[])
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | if ((i = path.lastIndexOf(File.pathSeparator)) != -1) {↵ | | 1 | if (↵
|
2 | if (path.length() > File.pathSeparator.length()) {↵ | | |
|
3 | new File(path.substring(0, i)).mkdirs(↵ | | 2 | srcFile.lastModified()↵
|
| | | 3 | > info.absoluteFile.lastModified()) {↵
|
4 | );↵ | | 4 | outOfDateClasses.put(className, className);↵
|
5 | }↵ | | 5 | ↵
|
6 | } | | 6 | }
|
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |