abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r556648 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Date Mon, 16 Jul 2007 15:25:47 GMT
Author: jmsnell
Date: Mon Jul 16 08:25:43 2007
New Revision: 556648

URL: http://svn.apache.org/viewvc?view=rev&rev=556648
Log:
Attempt to fix https://issues.apache.org/jira/browse/ABDERA-51.

Modified:
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?view=diff&rev=556648&r1=556647&r2=556648
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Mon Jul 16 08:25:43 2007
@@ -393,24 +393,28 @@
     return new FOMText(type, qname, (OMContainer)parent,this);
   }
   
+  @SuppressWarnings("unchecked")
   public <T extends Element>T newElement(QName qname) {
-    return newElement(qname, null);
+    return (T)newElement(qname, null);
   }
   
+  @SuppressWarnings("unchecked")
   public <T extends Element>T newElement(
     QName qname, 
     Base parent) {
-      return newExtensionElement(qname, parent);
+      return (T)newExtensionElement(qname, parent);
   }
   
+  @SuppressWarnings("unchecked")
   public <T extends Element>T newExtensionElement(QName qname) {
-    return newExtensionElement(qname, (OMContainer)null);
+    return (T)newExtensionElement(qname, (OMContainer)null);
   }
   
+  @SuppressWarnings("unchecked")
   public <T extends Element>T newExtensionElement(
     QName qname, 
     Base parent) {
-    return newExtensionElement(qname, (OMContainer)parent);
+    return (T)newExtensionElement(qname, (OMContainer)parent);
   }
   
   @SuppressWarnings("unchecked")



Mime
View raw message