diff options
Diffstat (limited to 'jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java')
-rw-r--r-- | jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java b/jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java index 0e68b26..7cdf0c4 100644 --- a/jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java +++ b/jimfs/src/main/java/com/google/common/jimfs/WindowsPathType.java @@ -20,7 +20,7 @@ import java.nio.file.InvalidPathException; import java.util.Iterator; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.annotation.Nullable; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; /** * Windows-style path type. @@ -134,7 +134,7 @@ final class WindowsPathType extends PathType { private static final Pattern DRIVE_LETTER_ROOT = Pattern.compile("^[a-zA-Z]:\\\\"); /** Parses a normal drive-letter root, e.g. "C:\". */ - @Nullable + @NullableDecl private String parseDriveRoot(String path) { Matcher drivePathMatcher = DRIVE_LETTER_ROOT.matcher(path); if (drivePathMatcher.find()) { @@ -160,7 +160,7 @@ final class WindowsPathType extends PathType { } @Override - public String toString(@Nullable String root, Iterable<String> names) { + public String toString(@NullableDecl String root, Iterable<String> names) { StringBuilder builder = new StringBuilder(); if (root != null) { builder.append(root); |