if (umask != null) {
RetryHandler h = new RetryHandler(this.retriesAllowed, this);
final FTPClient lftp = ftp;
executeRetryable(h, new Retryable() {
public void execute() throws IOException {
doSiteCommand(lftp, "umask " + umask);
}
}, "umask " + umask);
}
for (int i = dsfiles.length - 1; i >= 0; i--) {
final String dsfile = dsfiles[i];
executeRetryable(h, new Retryable() {
public void execute() throws IOException {
rmDir(ftp, dsfile);
}
}, dsfile);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
|
Method name: void execute()
|
|
Method name: int transferFiles(FTPClient, FileSet)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if (umask != null) {↵ | | |
|
2 | RetryHandler h = new RetryHandler(this.retriesAllowed, this);↵ | | |
|
| | | 1 | for (int i = dsfiles.length - 1; i >= 0; i--) {↵
|
3 | final FTPClient lftp = ftp;↵ | | 2 | final ↵
|
| | | 3 | String dsfile = dsfiles[i];↵
|
4 | executeRetryable(h, new Retryable() {↵ | | 4 | executeRetryable(h, new Retryable() {↵
|
5 | public void execute() throws IOException {↵ | | 5 | public void execute() throws IOException {↵
|
6 | doSiteCommand(lftp, "umask " + umask);↵ | | 6 | ↵
|
| | | 7 | rmDir(ftp, dsfile);↵
|
7 | }↵ | | 8 | }↵
|
8 | }, "umask " + umask);↵ | | 9 | ↵
|
| | | 10 | }, dsfile);↵
|
9 | } | | 11 | }
|
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 | Clones are declared in the same class |
Number of node comparisons | 1 |