From d06313f23549562579fd1399795b9cbbc1d7aba8 Mon Sep 17 00:00:00 2001 From: Renato Cavalcanti Date: Tue, 16 Jul 2019 13:50:12 +0200 Subject: [PATCH] Fix deprecation warning when using varargs in Scala 2.13 (FP #238) --- .../src/main/scala/play/twirl/compiler/TwirlCompiler.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala index f3001f75..64436275 100644 --- a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala +++ b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala @@ -565,7 +565,7 @@ package """ :+ packageName :+ """ .map { p => p.name.toString + Option(p.tpt.toString) .filter(_.startsWith("_root_.scala.")) - .map(_ => ":_*") + .map(_ => ".toIndexedSeq:_*") .getOrElse("") } .mkString(",") + ")" @@ -594,7 +594,7 @@ package """ :+ packageName :+ """ .map { p => p.name.toString + Option(p.tpt.toString) .filter(_.startsWith("_root_.scala.")) - .map(_ => ":_*") + .map(_ => ".toIndexedSeq:_*") .getOrElse("") } .mkString(",") + ")"