if (this.initialSiteCommand != null) { RetryHandler h = new RetryHandler(this.retriesAllowed, this); final FTPClient lftp = ftp; executeRetryable(h, new Retryable() { public void execute() throws IOException { doSiteCommand(lftp, FTP.this.initialSiteCommand); } }, "initial site command: " + this.initialSiteCommand); }
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 (this.initialSiteCommand != 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, FTP.this.initialSiteCommand);
6
                        
7
                    }
8
                }, "initial site command: " + this.initialSiteCommand);
7
    rmDir(ftp, dsfile);
8
                        }
9
                    }, dsfile);
9
            }
10
                }
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 locationClones are declared in the same class
Number of node comparisons1