From fe20c77f0bb7737efc7d38cbcf56c57786604698 Mon Sep 17 00:00:00 2001 From: Renato Cavalcanti Date: Tue, 16 Jul 2019 14:19:07 +0200 Subject: [PATCH] Fix deprecation warning when using varargs in Scala 2.13 (FP #238) (#241) --- .../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(",") + ")"