s/remove/filterNot/ # apparently deprecated
authorEric Prud'hommeaux <bertails@w3.org>
Sun, 13 Dec 2009 19:17:29 -0500
changeset 26 a125541a8c30
parent 25 6b68be2d0de6
child 27 6fada4947550
s/remove/filterNot/ # apparently deprecated
src/main/scala/SPARQL.scala
--- a/src/main/scala/SPARQL.scala	Sun Dec 13 19:15:37 2009 -0500
+++ b/src/main/scala/SPARQL.scala	Sun Dec 13 19:17:29 2009 -0500
@@ -80,7 +80,7 @@
   /* stemURI + '/' + (\w+) + '#' (\w+) */
   def parsePredicateURI(x:String):PUri = {
     val uri = new URI(x)
-    val path = uri.getPath().split("/").toList.remove(_ == "")
+    val path = uri.getPath().split("/").toList.filterNot(_ == "")
     val subPath = path.slice(0, path.size - 1).mkString("/")
     val stem = uri.getScheme() + "://" + uri.getAuthority + "/" + subPath
     PUri(Stem(stem), Rel(path.last), Attr(uri.getFragment))
@@ -89,7 +89,7 @@
   /* stemURI + '/' (\w+) '/' (\w+) '.' (\w+) '#record' */
   def parseObjectURI(x:String):ObjUri = {
     val uri = new URI(x)
-    val path = uri.getPath().split("/").toList.remove(_ == "")
+    val path = uri.getPath().split("/").toList.filterNot(_ == "")
     val subPath = path.slice(0, path.size - 2).mkString("/")
     val rel = path(path.size - 2)
     val attrPair = path(path.size-1).split("\\.")