commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130784 - /commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java
Date Thu, 02 Jun 2011 20:21:57 GMT
Author: simonetripodi
Date: Thu Jun  2 20:21:56 2011
New Revision: 1130784

URL: http://svn.apache.org/viewvc?rev=1130784&view=rev
Log:
fixed methods overriding

Modified:
    commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java

Modified: commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java?rev=1130784&r1=1130783&r2=1130784&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java
Thu Jun  2 20:21:56 2011
@@ -146,6 +146,7 @@ public class RSSDigester extends Digeste
      * @exception IOException if an input/output error occurs
      * @exception SAXException if a parsing exception occurs
      */
+    @Override
     public Object parse(File file) throws IOException, SAXException {
 
         configure();
@@ -164,7 +165,8 @@ public class RSSDigester extends Digeste
      * @exception IOException if an input/output error occurs
      * @exception SAXException if a parsing exception occurs
      */
-    public Object parse(InputSource input) throws IOException, SAXException {
+    @Override
+    public <T> T parse(InputSource input) throws IOException, SAXException {
 
         configure();
         return (super.parse(input));
@@ -182,7 +184,8 @@ public class RSSDigester extends Digeste
      * @exception IOException if an input/output error occurs
      * @exception SAXException if a parsing exception occurs
      */
-    public Object parse(InputStream input) throws IOException, SAXException {
+    @Override
+    public <T> T parse(InputStream input) throws IOException, SAXException {
 
         configure();
         return (super.parse(input));
@@ -200,7 +203,8 @@ public class RSSDigester extends Digeste
      * @exception IOException if an input/output error occurs
      * @exception SAXException if a parsing exception occurs
      */
-    public Object parse(String uri) throws IOException, SAXException {
+    @Override
+    public <T> T parse(String uri) throws IOException, SAXException {
 
         configure();
         return (super.parse(uri));
@@ -218,6 +222,7 @@ public class RSSDigester extends Digeste
     /**
      * Configure the parsing rules that will be used to process RSS input.
      */
+    @Override
     protected void configure() {
 
         if (configured) {



Mime
View raw message