Skip to content

Commit

Permalink
Merge pull request #603 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
avoid deprecated `java.net.URL` constructor
  • Loading branch information
mkurz authored Apr 7, 2023
2 parents 61e1d74 + a6e9b63 commit 9fdb33e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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("<p>file: example, url: http://example.org</p>")
Expand Down

0 comments on commit 9fdb33e

Please sign in to comment.