Skip to content

Commit 0dbec1f

Browse files
committed
avoid unchecked warning
1 parent a7fc68f commit 0dbec1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/scala/scala/compat/java8/FutureConverters.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object FutureConverters {
6666
*/
6767
def toJava[T](f: Future[T]): CompletionStage[T] = {
6868
f match {
69-
case p: P[T] => p.wrapped
69+
case p: P[T @unchecked] => p.wrapped
7070
case _ =>
7171
val cf = new CF[T](f)
7272
implicit val ec = InternalCallbackExecutor

0 commit comments

Comments
 (0)