abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r718898 - /incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java
Date Wed, 19 Nov 2008 07:49:56 GMT
Author: calavera
Date: Tue Nov 18 23:49:56 2008
New Revision: 718898

URL: http://svn.apache.org/viewvc?rev=718898&view=rev
Log:
cast added to RssFeed, it solves compilation errors

Modified:
    incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java

Modified: incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java?rev=718898&r1=718897&r2=718898&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java
(original)
+++ incubator/abdera/java/trunk/extensions/rss/src/main/java/org/apache/abdera/ext/rss/RssFeed.java
Tue Nov 18 23:49:56 2008
@@ -460,13 +460,13 @@
     return (T)this;
   }
 
-  public <T extends Element> T addExtension(QName qname) {
-    return getChannel().addExtension(qname);
+  public <T extends Element>T addExtension(QName qname) {
+    return (T) getChannel().addExtension(qname);
   }
 
   public <T extends Element> T addExtension(String namespace, String localPart,
       String prefix) {
-    return getChannel().addExtension(namespace, localPart, prefix);
+    return (T) getChannel().addExtension(namespace, localPart, prefix);
   }
 
   public Element addSimpleExtension(QName qname, String value) {
@@ -479,7 +479,7 @@
   }
 
   public <T extends Element> T getExtension(QName qname) {
-    return getChannel().getExtension(qname);
+    return (T) getChannel().getExtension(qname);
   }
 
   public <T extends Element> T getExtension(Class<T> _class) {



Mime
View raw message