Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 93815 invoked from network); 1 Mar 2011 17:40:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 17:40:52 -0000 Received: (qmail 16722 invoked by uid 500); 1 Mar 2011 17:40:51 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 16440 invoked by uid 500); 1 Mar 2011 17:40:49 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 16433 invoked by uid 99); 1 Mar 2011 17:40:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 17:40:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 17:40:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C04382388A3C; Tue, 1 Mar 2011 17:40:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1075937 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java Date: Tue, 01 Mar 2011 17:40:25 -0000 To: commits@commons.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110301174025.C04382388A3C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: simonetripodi Date: Tue Mar 1 17:40:25 2011 New Revision: 1075937 URL: http://svn.apache.org/viewvc?rev=1075937&view=rev Log: added the warning that Digester.parse() method can throw CCE Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java?rev=1075937&r1=1075936&r2=1075937&view=diff ============================================================================== --- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java (original) +++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/Digester.java Tue Mar 1 17:40:25 2011 @@ -87,6 +87,9 @@ public interface Digester extends Conten * Parse the content of the specified input source using this Digester. * Returns the root element from the object stack (if any). * + * WARNING: this method is subject to {@link ClassCastException} if + * the returned object is not assignable to the generic type. + * * @param input Input source containing the XML data to be parsed * * @exception IOException if an input/output error occurs @@ -98,6 +101,9 @@ public interface Digester extends Conten * Parse the content of the specified input stream using this Digester. * Returns the root element from the object stack (if any). * + * WARNING: this method is subject to {@link ClassCastException} if + * the returned object is not assignable to the generic type. + * * @param input Input stream containing the XML data to be parsed * * @exception IOException if an input/output error occurs @@ -109,6 +115,9 @@ public interface Digester extends Conten * Parse the content of the specified reader using this Digester. * Returns the root element from the object stack (if any). * + * WARNING: this method is subject to {@link ClassCastException} if + * the returned object is not assignable to the generic type. + * * @param reader Reader containing the XML data to be parsed * * @exception IOException if an input/output error occurs @@ -120,6 +129,9 @@ public interface Digester extends Conten * Parse the content of the specified URI using this Digester. * Returns the root element from the object stack (if any). * + * WARNING: this method is subject to {@link ClassCastException} if + * the returned object is not assignable to the generic type. + * * @param uri URI containing the XML data to be parsed * * @exception IOException if an input/output error occurs @@ -131,6 +143,9 @@ public interface Digester extends Conten * Parse the content of the specified URL using this Digester. * Returns the root element from the object stack (if any). * + * WARNING: this method is subject to {@link ClassCastException} if + * the returned object is not assignable to the generic type. + * * @param url URL containing the XML data to be parsed * * @exception IOException if an input/output error occurs