summaryrefslogtreecommitdiff
path: root/test/osgi
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2014-02-06 08:58:34 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2014-02-06 08:58:34 +0100
commite8cca3c275f902f7b5db7771385cfe8d2234356c (patch)
treef6a44b92aca524a6ae72eecec3bea2c316d127e8 /test/osgi
parent431ae49c3ebab1979f914e060cc5740f667bc482 (diff)
downloadscala-e8cca3c275f902f7b5db7771385cfe8d2234356c.tar.gz
scala-e8cca3c275f902f7b5db7771385cfe8d2234356c.tar.bz2
scala-e8cca3c275f902f7b5db7771385cfe8d2234356c.zip
Fix feature warnings in test.osgi.comp
Reduces the amount of noise from 22 lines down to the actually interesting 5 lines of information.
Diffstat (limited to 'test/osgi')
-rw-r--r--test/osgi/src/BasicReflection.scala2
-rw-r--r--test/osgi/src/ScalaOsgiHelper.scala6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/osgi/src/BasicReflection.scala b/test/osgi/src/BasicReflection.scala
index 68fedb7c83..d601f04f89 100644
--- a/test/osgi/src/BasicReflection.scala
+++ b/test/osgi/src/BasicReflection.scala
@@ -2,6 +2,8 @@ package tools.test.osgi
package reflection
package basic
+import scala.language.higherKinds
+
import org.junit.Assert._
import org.ops4j.pax.exam.CoreOptions._
diff --git a/test/osgi/src/ScalaOsgiHelper.scala b/test/osgi/src/ScalaOsgiHelper.scala
index 7b14cf20e8..084afe8643 100644
--- a/test/osgi/src/ScalaOsgiHelper.scala
+++ b/test/osgi/src/ScalaOsgiHelper.scala
@@ -1,5 +1,5 @@
package tools.test.osgi
-
+
import org.ops4j.pax.exam.CoreOptions._
import org.ops4j.pax.exam
import java.io.File
@@ -12,7 +12,7 @@ trait ScalaOsgiHelper {
}
private def filteredBundleFiles(names: String*): Array[exam.Option] =
- for(bundle <- allBundleFiles; if names exists (bundle.getName contains))
+ for(bundle <- allBundleFiles; if names exists (bundle.getName contains _))
yield makeBundle(bundle)
private def makeBundle(file: File): exam.Option =
@@ -34,5 +34,5 @@ trait ScalaOsgiHelper {
val bundles = filteredBundleFiles("scala-library")
bundles ++ Array[exam.Option](felix(), equinox(), junitBundles())
}
-
+
}