diff --git a/filesystem/src/main/java/com/nytimes/android/external/fs3/FSAllReader.java b/filesystem/src/main/java/com/nytimes/android/external/fs3/FSAllReader.java index 75e2f3fe..ac1cf75e 100644 --- a/filesystem/src/main/java/com/nytimes/android/external/fs3/FSAllReader.java +++ b/filesystem/src/main/java/com/nytimes/android/external/fs3/FSAllReader.java @@ -34,7 +34,8 @@ public Observable readAll(@Nonnull final String path) throws Fil .fromIterable(fileSystem.list(path)) .flatMap(s -> Observable.defer(() -> Observable.just(fileSystem.read(s))) - .onErrorReturn(throwable -> Okio.buffer((ReadResultBufferedSourceFactory.createFailureResult(throwable))))); + .onErrorReturn(throwable -> Okio.buffer( + ReadResultBufferedSourceFactory.createFailureResult(throwable)))); } catch (FileNotFoundException e) { throw Exceptions.propagate(e); } diff --git a/filesystem/src/main/java/com/nytimes/android/external/fs3/ReadResultBufferedSourceFactory.java b/filesystem/src/main/java/com/nytimes/android/external/fs3/ReadResultBufferedSourceFactory.java index fc3b8b7f..e2b61dc7 100644 --- a/filesystem/src/main/java/com/nytimes/android/external/fs3/ReadResultBufferedSourceFactory.java +++ b/filesystem/src/main/java/com/nytimes/android/external/fs3/ReadResultBufferedSourceFactory.java @@ -4,6 +4,9 @@ public final class ReadResultBufferedSourceFactory { + private ReadResultBufferedSourceFactory() { + } + @Nonnull public static ReadResultBufferedSource createFailureResult(@Nonnull Throwable throwable) { if (throwable == null) {