abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r565389 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java
Date Mon, 13 Aug 2007 15:58:40 GMT
Author: jmsnell
Date: Mon Aug 13 08:58:39 2007
New Revision: 565389

URL: http://svn.apache.org/viewvc?view=rev&rev=565389
Log:
Fix compile error. 

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java?view=diff&rev=565389&r1=565388&r2=565389
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java
Mon Aug 13 08:58:39 2007
@@ -67,7 +67,7 @@
   }
 
   public <T extends Element> T getExtension(Class<T> _class) {
-    return getExtInternal().getExtension(_class);
+    return (T)getExtInternal().getExtension(_class);
   }
 
   public List<Element> getExtensions() {
@@ -102,8 +102,9 @@
     getExtInternal().addExtension(extension,before);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T addExtension(QName qname, QName before) {
-    return getExtInternal().addExtension(qname,before);
+    return (T)getExtInternal().addExtension(qname,before);
   }
   
 }



Mime
View raw message