From 5123e2407e4fd75ed896c7de4f9f2de9ca697eff Mon Sep 17 00:00:00 2001 From: Toshiyuki Takahashi Date: Sun, 30 Jan 2022 22:27:56 +0900 Subject: [PATCH] Call toIndexedSeq explicitly to reduce warnings --- .../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 926578d5..acf7efcf 100644 --- a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala +++ b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala @@ -68,7 +68,7 @@ sealed trait AbstractGeneratedSource { lazy val matrix: Seq[(Int, Int)] = { for { - pos <- meta("MATRIX").split('|') + pos <- meta("MATRIX").split('|').toIndexedSeq c = pos.split("->") } yield try { Integer.parseInt(c(0)) -> Integer.parseInt(c(1)) @@ -79,7 +79,7 @@ sealed trait AbstractGeneratedSource { lazy val lines: Seq[(Int, Int)] = { for { - pos <- meta("LINES").split('|') + pos <- meta("LINES").split('|').toIndexedSeq c = pos.split("->") } yield try { Integer.parseInt(c(0)) -> Integer.parseInt(c(1))