Skip to content

Commit 6f9894b

Browse files
committed
Informative blocking queue now accepts non-null references only
1 parent 177532d commit 6f9894b

File tree

1 file changed

+1
-1
lines changed
  • tulip-runtime/src/main/kotlin/io/github/wfouche/tulip/core

1 file changed

+1
-1
lines changed

tulip-runtime/src/main/kotlin/io/github/wfouche/tulip/core/Tulip.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fun getProcessCpuTime(): Long {
5656

5757
/*-------------------------------------------------------------------------*/
5858

59-
class InformativeBlockingQueue<E>(val capacity: Int) : BlockingQueue<E>(capacity) {}
59+
class InformativeBlockingQueue<E>(val capacity: Int) : BlockingQueue<E & Any>(capacity) {}
6060

6161
typealias Java_Queue<E> = InformativeBlockingQueue<E>
6262

0 commit comments

Comments
 (0)