diff --git a/jimfs/src/main/java/com/google/common/jimfs/JimfsSecureDirectoryStream.java b/jimfs/src/main/java/com/google/common/jimfs/JimfsSecureDirectoryStream.java index 427355ebd..e482c5023 100644 --- a/jimfs/src/main/java/com/google/common/jimfs/JimfsSecureDirectoryStream.java +++ b/jimfs/src/main/java/com/google/common/jimfs/JimfsSecureDirectoryStream.java @@ -79,7 +79,7 @@ public synchronized void close() { fileSystemState.unregister(this); } - protected synchronized void checkOpen() { + synchronized void checkOpen() { if (!open) { throw new ClosedDirectoryStreamException(); } diff --git a/jimfs/src/main/java/com/google/common/jimfs/PathService.java b/jimfs/src/main/java/com/google/common/jimfs/PathService.java index d2496df38..d177c017d 100644 --- a/jimfs/src/main/java/com/google/common/jimfs/PathService.java +++ b/jimfs/src/main/java/com/google/common/jimfs/PathService.java @@ -175,7 +175,7 @@ public JimfsPath createPath(@Nullable Name root, Iterable names) { } /** Returns a path with the given root (or no root, if null) and the given names. */ - protected final JimfsPath createPathInternal(@Nullable Name root, Iterable names) { + final JimfsPath createPathInternal(@Nullable Name root, Iterable names) { return new JimfsPath(this, root, names); } diff --git a/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java b/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java index 0a812d32e..ef0f9b638 100644 --- a/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java +++ b/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java @@ -55,7 +55,7 @@ public static Subject.Factory paths() { private static final LinkOption[] NOFOLLOW_LINKS = {LinkOption.NOFOLLOW_LINKS}; private final Path actual; - protected LinkOption[] linkOptions = FOLLOW_LINKS; + LinkOption[] linkOptions = FOLLOW_LINKS; private Charset charset = UTF_8; private PathSubject(FailureMetadata failureMetadata, Path subject) {