mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 23:17:54 -05:00
Not null annotations (#3708)
* NotNull -> Nonnull Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
This commit is contained in:
@@ -22,8 +22,7 @@ import java.util.PriorityQueue;
|
||||
import java.util.Queue;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class InMemoryTasksPriorityQueues<T extends TasksPriorityProvider>
|
||||
implements TaskCollection<T> {
|
||||
@@ -42,7 +41,7 @@ public class InMemoryTasksPriorityQueues<T extends TasksPriorityProvider>
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Nonnull
|
||||
private PriorityQueue<T> newEmptyQueue() {
|
||||
return new PriorityQueue<>(Comparator.comparingLong(TasksPriorityProvider::getPriority));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user