-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to jspecify annotations (was checker framework)
All packages are annotated with `NullMarked` to make it the default behavior. The user-facing classes are explicitly annotated as documentation to convey intent to the reader.
- Loading branch information
Showing
228 changed files
with
669 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
caffeine/src/javaPoet/java/com/github/benmanes/caffeine/cache/local/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache.local; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
3 changes: 3 additions & 0 deletions
3
caffeine/src/javaPoet/java/com/github/benmanes/caffeine/cache/node/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache.node; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
3 changes: 3 additions & 0 deletions
3
caffeine/src/javaPoet/java/com/github/benmanes/caffeine/cache/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
caffeine/src/jmh/java/com/github/benmanes/caffeine/cache/impl/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache.impl; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
3 changes: 3 additions & 0 deletions
3
caffeine/src/jmh/java/com/github/benmanes/caffeine/cache/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
caffeine/src/jmh/java/com/github/benmanes/caffeine/cache/sketch/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.cache.sketch; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
3 changes: 3 additions & 0 deletions
3
caffeine/src/jmh/java/com/github/benmanes/caffeine/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
3 changes: 3 additions & 0 deletions
3
caffeine/src/jmh/java/com/github/benmanes/caffeine/profiler/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@NullMarked | ||
@CheckReturnValue | ||
package com.github.benmanes.caffeine.profiler; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
import com.google.errorprone.annotations.CheckReturnValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
import java.util.function.BiFunction; | ||
import java.util.function.Function; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
/** | ||
* Computes or retrieves values asynchronously based on a key, for use in populating a | ||
* {@link AsyncLoadingCache}. | ||
|
@@ -42,6 +44,7 @@ | |
* @param <V> the type of values | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@NullMarked | ||
@FunctionalInterface | ||
@SuppressWarnings("PMD.SignatureDeclareThrowsException") | ||
public interface AsyncCacheLoader<K, V> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.