Skip to content

Commit 3622daf

Browse files
cpovirkJimfs Team
authored andcommitted
Migrate from Checker Framework annotations to JSpecify.
RELNOTES=n/a PiperOrigin-RevId: 704266700
1 parent 5245040 commit 3622daf

39 files changed

+42
-42
lines changed

jimfs/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
<optional>true</optional>
6262
</dependency>
6363
<dependency>
64-
<groupId>org.checkerframework</groupId>
65-
<artifactId>checker-qual</artifactId>
64+
<groupId>org.jspecify</groupId>
65+
<artifactId>jspecify</artifactId>
6666
<optional>true</optional>
6767
</dependency>
6868

jimfs/src/main/java/com/google/common/jimfs/AbstractWatchService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import java.util.concurrent.atomic.AtomicBoolean;
4343
import java.util.concurrent.atomic.AtomicInteger;
4444
import java.util.concurrent.atomic.AtomicReference;
45-
import org.checkerframework.checker.nullness.qual.Nullable;
45+
import org.jspecify.annotations.Nullable;
4646

4747
/**
4848
* Abstract implementation of {@link WatchService}. Provides the means for registering and managing

jimfs/src/main/java/com/google/common/jimfs/AclAttributeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.nio.file.attribute.UserPrincipal;
3030
import java.util.List;
3131
import java.util.Map;
32-
import org.checkerframework.checker.nullness.qual.Nullable;
32+
import org.jspecify.annotations.Nullable;
3333

3434
/**
3535
* Attribute provider that provides the {@link AclFileAttributeView} ("acl").

jimfs/src/main/java/com/google/common/jimfs/AttributeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.nio.file.attribute.FileAttributeView;
2525
import java.util.Arrays;
2626
import java.util.Map;
27-
import org.checkerframework.checker.nullness.qual.Nullable;
27+
import org.jspecify.annotations.Nullable;
2828

2929
/**
3030
* Abstract provider for handling a specific file attribute view.

jimfs/src/main/java/com/google/common/jimfs/AttributeService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import java.util.List;
3737
import java.util.Map;
3838
import java.util.Set;
39-
import org.checkerframework.checker.nullness.qual.Nullable;
39+
import org.jspecify.annotations.Nullable;
4040

4141
/**
4242
* Service providing all attribute related operations for a file store. One piece of the file store

jimfs/src/main/java/com/google/common/jimfs/BasicAttributeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.nio.file.attribute.BasicFileAttributes;
2424
import java.nio.file.attribute.FileAttributeView;
2525
import java.nio.file.attribute.FileTime;
26-
import org.checkerframework.checker.nullness.qual.Nullable;
26+
import org.jspecify.annotations.Nullable;
2727

2828
/**
2929
* Attribute provider that provides attributes common to all file systems, the {@link

jimfs/src/main/java/com/google/common/jimfs/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import java.util.Map;
4646
import java.util.Set;
4747
import java.util.regex.Pattern;
48-
import org.checkerframework.checker.nullness.qual.Nullable;
48+
import org.jspecify.annotations.Nullable;
4949

5050
/**
5151
* Immutable configuration for an in-memory file system. A {@code Configuration} is passed to a

jimfs/src/main/java/com/google/common/jimfs/Directory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import com.google.errorprone.annotations.CanIgnoreReturnValue;
2323
import java.nio.file.attribute.FileTime;
2424
import java.util.Iterator;
25-
import org.checkerframework.checker.nullness.qual.Nullable;
25+
import org.jspecify.annotations.Nullable;
2626

2727
/**
2828
* A table of {@linkplain DirectoryEntry directory entries}.

jimfs/src/main/java/com/google/common/jimfs/DirectoryEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.nio.file.NotLinkException;
2828
import java.nio.file.Path;
2929
import java.util.Objects;
30-
import org.checkerframework.checker.nullness.qual.Nullable;
30+
import org.jspecify.annotations.Nullable;
3131

3232
/**
3333
* Entry in a directory, containing references to the directory itself, the file the entry links to

jimfs/src/main/java/com/google/common/jimfs/DosAttributeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.nio.file.attribute.FileAttributeView;
2828
import java.nio.file.attribute.FileTime;
2929
import java.util.Map;
30-
import org.checkerframework.checker.nullness.qual.Nullable;
30+
import org.jspecify.annotations.Nullable;
3131

3232
/**
3333
* Attribute provider that provides the {@link DosFileAttributeView} ("dos") and allows the reading

0 commit comments

Comments
 (0)