You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/02 22:21:57 UTC
svn commit: r1130784 -
/commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/RSSDigester.java
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) {