From 49c8ccf37d5f1b292a1f57b1f7bb6edaf8852c0d Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Fri, 18 Oct 2024 10:18:28 +0900 Subject: [PATCH] add parentheses --- src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala | 2 +- .../scala/com/typesafe/sbteclipse/core/EclipsePlugin.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala b/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala index e680604..302500b 100644 --- a/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala +++ b/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala @@ -181,7 +181,7 @@ private object Eclipse extends EclipseSDTConfig { } def onSuccess(state: State)(effects: IO[Seq[String]]): State = { - val names = effects.unsafePerformIO + val names = effects.unsafePerformIO() if (names.isEmpty) state.log.warn("There was no project to create Eclipse project files for!") else diff --git a/src/main/scala/com/typesafe/sbteclipse/core/EclipsePlugin.scala b/src/main/scala/com/typesafe/sbteclipse/core/EclipsePlugin.scala index 67dfe2c..2c7b2ff 100644 --- a/src/main/scala/com/typesafe/sbteclipse/core/EclipsePlugin.scala +++ b/src/main/scala/com/typesafe/sbteclipse/core/EclipsePlugin.scala @@ -106,7 +106,7 @@ object EclipsePlugin { // This is done to ease integration with Eclipse, but it's doubtful as to how effective it is. val managedClassesDirectory = (scope / EclipseKeys.classesManaged).value - val managedSources = ((srcManaged ** "*.scala").get ++ (srcManaged ** "*.java").get) + val managedSources = ((srcManaged ** "*.scala").get() ++ (srcManaged ** "*.java").get()) .filter(f => f.getAbsolutePath.startsWith(baseDir.getAbsolutePath)) .map(f => PlainVirtualFileConverter.converter.toVirtualFile(sbt.io.Path.apply(f.getAbsolutePath.replace(baseDir.getAbsolutePath, "${BASE}")).asPath)) val managedClasses = managedSources @@ -119,7 +119,7 @@ object EclipsePlugin { // Copy modified class files val managedSet = IO.copy(managedClasses) // Remove deleted class files - (managedClassesDirectory ** "*.class").get.filterNot(managedSet.contains).foreach(_.delete()) + (managedClassesDirectory ** "*.class").get().filterNot(managedSet.contains).foreach(_.delete()) } analysis }