Skip to content

Commit

Permalink
Explicitly comment unspecified-nullness types.
Browse files Browse the repository at this point in the history
Co-authored-by: Werner Dietl <[email protected]>
  • Loading branch information
cpovirk and wmdietl authored Dec 18, 2024
1 parent 53889a8 commit 3f15d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/nio/file/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ public static Path setAttribute(Path path, String attribute, Object value,
* if an I/O error occurs
*/
@NullUnmarked // https://github.com/jspecify/jdk/pull/10#pullrequestreview-1404320091
public static Object getAttribute(@NonNull Path path, @NonNull String attribute,
public static /*@NullUnmarked*/ Object getAttribute(@NonNull Path path, @NonNull String attribute,
@NonNull LinkOption @NonNull ... options)
throws IOException
{
Expand Down Expand Up @@ -1915,7 +1915,7 @@ public static Object getAttribute(@NonNull Path path, @NonNull String attribute,
* if an I/O error occurs
*/
@NullUnmarked // https://github.com/jspecify/jdk/pull/10#pullrequestreview-1404320091
public static @NonNull Map<@NonNull String,Object> readAttributes(@NonNull Path path, @NonNull String attributes,
public static @NonNull Map<@NonNull String, /*@NullUnmarked*/ Object> readAttributes(@NonNull Path path, @NonNull String attributes,
@NonNull LinkOption @NonNull ... options)
throws IOException
{
Expand Down

0 comments on commit 3f15d24

Please sign in to comment.