commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1075700 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java
Date Tue, 01 Mar 2011 08:38:59 GMT
Author: simonetripodi
Date: Tue Mar  1 08:38:59 2011
New Revision: 1075700

URL: http://svn.apache.org/viewvc?rev=1075700&view=rev
Log:
avoid global suppression, thanks Jörg Schaible!!!

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java?rev=1075700&r1=1075699&r2=1075700&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/DigesterImpl.java
Tue Mar  1 08:38:59 2011
@@ -1033,7 +1033,6 @@ public final class DigesterImpl implemen
     /**
      * {@inheritDoc}
      */
-    @SuppressWarnings("unchecked")
     public <T> T parse(InputSource input) throws IOException, SAXException {
         if (input == null) {
             throw new IllegalArgumentException("InputSource to parse must be not null");
@@ -1047,7 +1046,10 @@ public final class DigesterImpl implemen
             if (this.root == null) {
                 return null;
             }
-            return (T) this.root;
+
+            @SuppressWarnings("unchecked")
+            T returned = (T) this.root;
+            return returned;
         } finally {
             this.cleanup();
         }



Mime
View raw message