abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r592211 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util: AbstractExtensionFactory.java AbstractXPath.java MimeTypeHelper.java
Date Tue, 06 Nov 2007 00:47:22 GMT
Author: jmsnell
Date: Mon Nov  5 16:47:21 2007
New Revision: 592211

URL: http://svn.apache.org/viewvc?rev=592211&view=rev
Log:
Remove some compiler warnings

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java?rev=592211&r1=592210&r2=592211&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java
Mon Nov  5 16:47:21 2007
@@ -93,6 +93,7 @@
     impls.put(qname, impl);
   }
   
+  @SuppressWarnings("unchecked") 
   public <T extends Base> String getMimeType(T base) {
     Element element = base instanceof Element ? (Element)base : 
                       base instanceof Document ? ((Document)base).getRoot() : 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java?rev=592211&r1=592210&r2=592211&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Mon Nov  5 16:47:21 2007
@@ -54,6 +54,7 @@
     return new HashMap<String,String>(namespaces);
   }
   
+  @SuppressWarnings("unchecked") 
   public List selectNodes(String path, Base base) throws XPathException {
     return selectNodes(path, base, getDefaultNamespaces());
   }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java?rev=592211&r1=592210&r2=592211&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/MimeTypeHelper.java
Mon Nov  5 16:47:21 2007
@@ -72,6 +72,7 @@
   /**
    * Returns true if media type a matches media type b
    */
+  @SuppressWarnings("unchecked") 
   public static boolean isMatch(MimeType a, MimeType b, boolean includeparams) {
     try {
       if (a == null || b == null) return true;
@@ -195,6 +196,7 @@
   /**
    * Returns the appropriate media type for the given Abdera base
    */
+  @SuppressWarnings("unchecked") 
   public static <T extends Base>String getMimeType(T base) {
     String type = null;
     if (base instanceof Document) {



Mime
View raw message