diff --git a/core/src/main/scala/akka/kafka/javadsl/Consumer.scala b/core/src/main/scala/akka/kafka/javadsl/Consumer.scala index f58da73dd..7ed4a3f9a 100644 --- a/core/src/main/scala/akka/kafka/javadsl/Consumer.scala +++ b/core/src/main/scala/akka/kafka/javadsl/Consumer.scala @@ -93,8 +93,8 @@ object Consumer { control.drainAndShutdown(streamCompletion, ec) override val isShutdown: CompletionStage[Done] = - control.isShutdown.thenCompose[Done] { _: Any => // Scala 2.12 needs the types here - streamCompletion.thenApply[Done] { _: Any => // Scala 2.12 needs the types here + control.isShutdown.thenCompose[Done] { (_: Any) => // Scala 2.12 needs the types here + streamCompletion.thenApply[Done] { (_: Any) => // Scala 2.12 needs the types here Done.done() } }