-
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.
[ci skip] Migrate from JSR-305 annotations to CheckerFramework's & Er…
…rorProne's (fixes #242)
- Loading branch information
Showing
86 changed files
with
338 additions
and
588 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
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 |
---|---|---|
|
@@ -15,24 +15,22 @@ | |
*/ | ||
package com.github.benmanes.caffeine.cache; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
import javax.annotation.concurrent.ThreadSafe; | ||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
|
||
/** | ||
* A facade for benchmark implementations. | ||
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@ThreadSafe | ||
public interface BasicCache<K, V> { | ||
|
||
/** Returns the value stored in the cache, or null if not present. */ | ||
@Nullable | ||
V get(@Nonnull K key); | ||
V get(@NonNull K key); | ||
|
||
/** Stores the value into the cache, replacing an existing mapping if present. */ | ||
void put(@Nonnull K key, @Nonnull V value); | ||
void put(@NonNull K key, @NonNull V value); | ||
|
||
/** Invalidates all entries from the cache. */ | ||
void clear(); | ||
|
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
49 changes: 0 additions & 49 deletions
49
caffeine/src/jmh/java/com/github/benmanes/caffeine/cache/impl/RapidoidCache.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -19,8 +19,7 @@ | |
import java.util.Collection; | ||
import java.util.NoSuchElementException; | ||
|
||
import javax.annotation.Nullable; | ||
import javax.annotation.concurrent.NotThreadSafe; | ||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
|
||
/** | ||
* This class provides a skeletal implementation of the {@link LinkedDeque} interface to minimize | ||
|
@@ -29,7 +28,6 @@ | |
* @author [email protected] (Ben Manes) | ||
* @param <E> the type of elements held in this collection | ||
*/ | ||
@NotThreadSafe | ||
abstract class AbstractLinkedDeque<E> extends AbstractCollection<E> implements LinkedDeque<E> { | ||
|
||
// This class provides a doubly-linked list that is optimized for the virtual machine. The first | ||
|
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 |
---|---|---|
|
@@ -17,8 +17,7 @@ | |
|
||
import java.util.Deque; | ||
|
||
import javax.annotation.Nullable; | ||
import javax.annotation.concurrent.NotThreadSafe; | ||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
|
||
import com.github.benmanes.caffeine.cache.AccessOrderDeque.AccessOrder; | ||
|
||
|
@@ -28,7 +27,6 @@ | |
* @author [email protected] (Ben Manes) | ||
* @param <E> the type of elements held in this collection | ||
*/ | ||
@NotThreadSafe | ||
final class AccessOrderDeque<E extends AccessOrder<E>> extends AbstractLinkedDeque<E> { | ||
|
||
@Override | ||
|
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.