abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r560090 - in /incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss: RssChannel.java RssFeed.java
Date Fri, 27 Jul 2007 04:08:43 GMT
Author: jmsnell
Date: Thu Jul 26 21:08:43 2007
New Revision: 560090

URL: http://svn.apache.org/viewvc?view=rev&rev=560090
Log:
Bug fix

Modified:
    incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssChannel.java
    incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssFeed.java

Modified: incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssChannel.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssChannel.java?view=diff&rev=560090&r1=560089&r2=560090
==============================================================================
--- incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssChannel.java
(original)
+++ incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssChannel.java
Thu Jul 26 21:08:43 2007
@@ -53,7 +53,7 @@
 public class RssChannel 
   extends ExtensibleElementWrapper {
 
-  protected RssChannel(Element internal) {
+  public RssChannel(Element internal) {
     super(internal);
   }
 

Modified: incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssFeed.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssFeed.java?view=diff&rev=560090&r1=560089&r2=560090
==============================================================================
--- incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssFeed.java
(original)
+++ incubator/abdera/java/trunk/contrib/rss/src/main/java/org/apache/abdera/contrib/rss/RssFeed.java
Thu Jul 26 21:08:43 2007
@@ -56,7 +56,9 @@
   
   @SuppressWarnings("unused")
   private RssChannel getChannel() {
-    return this.getFirstChild();
+    RssChannel c = super.getExtension(RssConstants.QNAME_CHANNEL);
+    if (c == null) c = super.getExtension(RssConstants.QNAME_RDF_CHANNEL);
+    return c;
   }
 
   public void addEntry(Entry entry) {



Mime
View raw message