Skip to content

Commit 3b0894e

Browse files
committed
Fix compile.
1 parent bd05b74 commit 3b0894e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/src/main/java/ch/cyberduck/core/PathAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public PathAttributes setLockId(final String lockId) {
802802
}
803803

804804
@Override
805-
public PathAttributes setDirectoryId(final String directoryId) {
805+
public PathAttributes setDirectoryId(final byte[] directoryId) {
806806
return this;
807807
}
808808

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/ContentReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public String read(final Path file) throws BackgroundException {
5353

5454
public byte[] readBytes(final Path file) throws BackgroundException {
5555
final Read read = session._getFeature(Read.class);
56-
final TransferStatus status = new TransferStatus().withLength(file.attributes().getSize());
56+
final TransferStatus status = new TransferStatus().setLength(file.attributes().getSize());
5757
try (final InputStream in = read.read(file, status, new DisabledConnectionCallback())) {
5858
final ByteArrayOutputStream out = new ByteArrayOutputStream();
5959
new StreamCopier(status, status).transfer(in, out);

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/impl/CryptoDirectoryUVFProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public Path toEncrypted(final Session<?> session, final byte[] directoryId, fina
9090
if(new SimplePathPredicate(directory).test(home) || directory.isChild(home)) {
9191
final PathAttributes attributes = new PathAttributes(directory.attributes());
9292
// The root of the vault is a different target directory and file ids always correspond to the metadata file
93-
attributes.withVersionId(null);
94-
attributes.withFileId(null);
93+
attributes.setVersionId(null);
94+
attributes.setFileId(null);
9595
// Remember random directory id for use in vault
9696
final byte[] id = this.toDirectoryId(session, directory, directoryId);
9797
log.debug("Use directory ID '{}' for folder {}", id, directory);

s3/src/test/java/ch/cyberduck/core/cryptomator/UVFIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void listMinio() throws BackgroundException, IOException {
121121
try(final InputStream in = UVFIntegrationTest.class.getResourceAsStream("/uvf/first_vault" + fi)) {
122122
size = in.read(content);
123123
}
124-
final TransferStatus transferStatus = new TransferStatus().withLength(size);
124+
final TransferStatus transferStatus = new TransferStatus().setLength(size);
125125
transferStatus.setChecksum(storage.getFeature(Write.class).checksum(file, transferStatus).compute(new ByteArrayInputStream(content), transferStatus));
126126
storage.getFeature(Bulk.class).pre(Transfer.Type.upload, Collections.singletonMap(new TransferItem(file), transferStatus), new DisabledConnectionCallback());
127127
final StatusOutputStream<?> out = storage.getFeature(Write.class).write(file, transferStatus, new DisabledConnectionCallback());
@@ -260,7 +260,7 @@ public Credentials prompt(final Host bookmark, final String username, final Stri
260260

261261
private static byte @NotNull [] writeRandomFile(final Session<?> session, final Path file, int size) throws BackgroundException, IOException {
262262
final byte[] content = RandomUtils.nextBytes(size);
263-
final TransferStatus transferStatus = new TransferStatus().withLength(content.length);
263+
final TransferStatus transferStatus = new TransferStatus().setLength(content.length);
264264
transferStatus.setChecksum(session.getFeature(Write.class).checksum(file, transferStatus).compute(new ByteArrayInputStream(content), transferStatus));
265265
session.getFeature(Bulk.class).pre(Transfer.Type.upload, Collections.singletonMap(new TransferItem(file), transferStatus), new DisabledConnectionCallback());
266266
final StatusOutputStream<?> out = session.getFeature(Write.class).write(file, transferStatus, new DisabledConnectionCallback());

0 commit comments

Comments
 (0)