From 8870cb6a823c6d4e5fba8f99f61171291da4e536 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Tue, 9 Apr 2024 09:53:32 +0200 Subject: [PATCH] Fix Java 8 compat --- server-test/src/test/scala/testpkg/BuildServerTest.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server-test/src/test/scala/testpkg/BuildServerTest.scala b/server-test/src/test/scala/testpkg/BuildServerTest.scala index 68f86e30c..3a55469f5 100644 --- a/server-test/src/test/scala/testpkg/BuildServerTest.scala +++ b/server-test/src/test/scala/testpkg/BuildServerTest.scala @@ -305,12 +305,12 @@ class BuildServerTest extends AbstractServerTest { test("workspace/reload: send diagnostic and respond with error") { // write an other-build.sbt file that does not compile val otherBuildFile = svr.baseDirectory.toPath.resolve("other-build.sbt") - Files.writeString( + Files.write( otherBuildFile, """|val someSettings = Seq( | scalacOptions ++= "-deprecation" |) - |""".stripMargin + |""".stripMargin.getBytes ) // reload reloadWorkspace(id = 52) @@ -331,12 +331,12 @@ class BuildServerTest extends AbstractServerTest { } ) // fix the other-build.sbt file and reload again - Files.writeString( + Files.write( otherBuildFile, """|val someSettings = Seq( | scalacOptions += "-deprecation" |) - |""".stripMargin + |""".stripMargin.getBytes ) reloadWorkspace(id = 52) // assert received an empty diagnostic