Update SecureFileAccessor

This commit is contained in:
Andrea Cavalli 2020-09-24 11:45:22 +02:00
parent b5105bf083
commit d1fa0b7834

View File

@ -19,6 +19,7 @@
package org.warp.filesponge;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@ -44,7 +45,7 @@ public class SecureFileAccessor implements FileAccessor {
}
@Override
public Optional<FileContent> getContent(@NotNull FileURI fileURI, boolean offlineOnly) {
public CompletableFuture<Optional<FileContent>> getContent(@NotNull FileURI fileURI, boolean offlineOnly) {
return fileAccessor.getContent(fileURI, offlineOnly);
}