From a6e9b637f631880f05b42098914d30906737f295 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sat, 8 Apr 2023 08:17:49 +0900 Subject: [PATCH] avoid deprecated `java.net.URL` constructor --- .../src/test/scala/play/twirl/compiler/test/CompilerSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala b/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala index b38343cd..075af74c 100644 --- a/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala +++ b/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala @@ -107,7 +107,7 @@ class CompilerSpec extends AnyWordSpec with Matchers { val helper = newCompilerHelper val result = helper .compile[((java.io.File, java.net.URL) => Html)]("argImports.scala.html", "html.argImports") - .static(new java.io.File("example"), new java.net.URL("http://example.org")) + .static(new java.io.File("example"), new java.net.URI("http://example.org").toURL) .toString .trim result must be("

file: example, url: http://example.org

")