sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1183298 - /sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala
Date Fri, 14 Oct 2011 11:01:41 GMT
Author: bdelacretaz
Date: Fri Oct 14 11:01:41 2011
New Revision: 1183298

URL: http://svn.apache.org/viewvc?rev=1183298&view=rev
Log:
SLING-2245 - avoid animalSniffer errors

Modified:
    sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala

Modified: sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala?rev=1183298&r1=1183297&r2=1183298&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala
(original)
+++ sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/BundleFS.scala
Fri Oct 14 11:01:41 2011
@@ -38,7 +38,7 @@ object BundleFS {
     abstract class BundleEntry(url: URL, parent: DirEntry) extends AbstractFile {
       require(url != null, "url must not be null")
       lazy val (path: String, name: String) = getPathAndName(url)
-      lazy val fullName: String = (path::name::Nil).filter(!_.isEmpty).mkString("/")
+      lazy val fullName: String = (path::name::Nil).filter(_.size != 0).mkString("/")
 
       /**
        * @return null
@@ -187,4 +187,4 @@ object BundleFS {
     new DirEntry(bundle.getResource("/"), null)
   }
 
-}
\ No newline at end of file
+}



Mime
View raw message