incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r1050723 - /incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala
Date Sat, 18 Dec 2010 21:39:32 GMT
Author: vdichev
Date: Sat Dec 18 21:39:32 2010
New Revision: 1050723

URL: http://svn.apache.org/viewvc?rev=1050723&view=rev
Log:
Fix bug caused by difference in XML Node equality in Scala 2.8

Modified:
    incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala

Modified: incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala
URL: http://svn.apache.org/viewvc/incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala?rev=1050723&r1=1050722&r2=1050723&view=diff
==============================================================================
--- incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala
(original)
+++ incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/external/AtomFeed.scala
Sat Dec 18 21:39:32 2010
@@ -51,8 +51,8 @@ class AtomFeed(user: User, atomURL: Stri
     if (link isEmpty)
       node \ "content" text
     else {
-      val alternate = link find(_ \ "@rel" == "alternate")
-      val anyLink = alternate getOrElse((link find(_ \ "@rel" == Nil)).get)
+      val alternate = link find(_ \ "@rel" xml_== "alternate")
+      val anyLink = alternate getOrElse((link find(_ \ "@rel" isEmpty)).get)
       anyLink \ "@href" text
     }
   }



Mime
View raw message