abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r555834 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model: ElementWrapper.java ExtensibleElementWrapper.java
Date Fri, 13 Jul 2007 01:33:43 GMT
Author: jmsnell
Date: Thu Jul 12 18:33:42 2007
New Revision: 555834

URL: http://svn.apache.org/viewvc?view=rev&rev=555834
Log:
Eliminate some compiler warnings that are safe to ignore

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
    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/ElementWrapper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java?view=diff&rev=555834&r1=555833&r2=555834
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
Thu Jul 12 18:33:42 2007
@@ -100,10 +100,12 @@
     return internal.getFactory();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getFirstChild() {
     return (T) internal.getFirstChild();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getFirstChild(QName qname) {
     return (T) internal.getFirstChild(qname);
   }
@@ -120,22 +122,27 @@
     return internal.getLocale();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getNextSibling() {
     return (T) internal.getNextSibling();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getNextSibling(QName qname) {
     return (T) internal.getNextSibling(qname);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Base> T getParentElement() {
     return (T) internal.getParentElement();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getPreviousSibling() {
     return (T) internal.getPreviousSibling();
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getPreviousSibling(QName qname) {
     return (T) internal.getPreviousSibling(qname);
   }

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=555834&r1=555833&r2=555834
==============================================================================
--- 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
Thu Jul 12 18:33:42 2007
@@ -43,10 +43,12 @@
     getExtInternal().addExtension(extension);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T addExtension(QName qname) {
     return (T) getExtInternal().addExtension(qname);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T addExtension(String namespace, String localPart, String
prefix) {
     return (T) getExtInternal().addExtension(namespace, localPart, prefix);
   }
@@ -59,6 +61,7 @@
     return getExtInternal().addSimpleExtension(namespace, localPart, prefix, value);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends Element> T getExtension(QName qname) {
     return (T) getExtInternal().getExtension(qname);
   }



Mime
View raw message