The following document contains the results of PMD's CPD 4.3.
| File | Line |
|---|---|
| net\sf\webphotos\gui\util\FtpClient.java | 490 |
| net\sf\webphotos\gui\util\FtpClient.java | 528 |
totalBytes += remote.getSize();
} // fim for
} catch (SyncException se) {
Util.log(se.getMessage());
ftp.disconnect("não foi possivel entrar no diretorio");
} catch (Exception e) {
log.error(e);
}
} else {
// Baixando um arquivo
try {
ftp.cd(Integer.toString(tmpArq.getAlbumID()));
remoteFiles = this.ftp.listFiles();
for (FTPFile remote : remoteFiles) {
if (tmpArq.getNomeArquivo().equals(remote.getName())) {
totalBytes += remote.getSize();
tmpArq.setTamanho(remote.getSize());
break;
}
} // fim for
} catch (SyncException se) {
Util.log(se.getMessage());
ftp.disconnect("não foi possivel entrar no diretorio");
} catch (Exception e) {
log.error(e);
}
}
} | |
| File | Line |
|---|---|
| net\sf\webphotos\sync\FTP\SyncObject.java | 394 |
| net\sf\webphotos\sync\FTP\SyncObject.java | 413 |
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_a" + fotoID + ".jpg"));
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_b" + fotoID + ".jpg"));
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_c" + fotoID + ".jpg"));
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_d" + fotoID + ".jpg"));
if (isEnviarAltaResolucao() == true) {
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".jpg"));
listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".zip"));
} | |