Skip to content

Commit

Permalink
Review method and parameter names.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed May 14, 2024
1 parent 83f3e3e commit 216effe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ public long getDestinationlength() {
return destinationlength;
}

public void setDestinationlength(final long destinationlength) {
public void setDestinationLength(final long destinationlength) {
this.destinationlength = destinationlength;
}

public TransferStatus withEncryptedlength(final long encryptedlength) {
this.destinationlength = encryptedlength;
public TransferStatus withDestinationLength(final long destinationlength) {
this.destinationlength = destinationlength;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public CryptoUploadFeature(final Session<?> session, final Upload<Reply> delegat

@Override
public Reply upload(final Path file, final Local local, final BandwidthThrottle throttle, final StreamListener listener, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {
return proxy.upload(vault.encrypt(session, file), local, throttle, listener, status.withEncryptedlength(new CryptoTransferStatus(vault, status).getLength()), callback);
return proxy.upload(vault.encrypt(session, file), local, throttle, listener, status.withDestinationLength(new CryptoTransferStatus(vault, status).getLength()), callback);
}

@Override
public Write.Append append(final Path file, final TransferStatus status) throws BackgroundException {
return proxy.append(vault.encrypt(session, file), status.withEncryptedlength(new CryptoTransferStatus(vault, status).getLength()));
return proxy.append(vault.encrypt(session, file), status.withDestinationLength(new CryptoTransferStatus(vault, status).getLength()));
}

@Override
Expand Down

0 comments on commit 216effe

Please sign in to comment.