You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/07 00:54:06 UTC

svn commit: r1747105 - in /commons/proper/digester/trunk/core/src: main/java/org/apache/commons/digester3/ main/java/org/apache/commons/digester3/binder/ main/java/org/apache/commons/digester3/plugins/ test/java/org/apache/commons/digester3/ test/java/...

Author: ggregory
Date: Tue Jun  7 00:54:06 2016
New Revision: 1747105

URL: http://svn.apache.org/viewvc?rev=1747105&view=rev
Log:
Update old school @exception with new school @throws.

Modified:
    commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/Digester.java
    commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
    commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/binder/DigesterLoader.java
    commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/plugins/PluginDeclarationRule.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NodeCreateRuleTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/RuleTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XIncludeTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XMLSchemaTestCase.java
    commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/plugins/Utils.java

Modified: commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/Digester.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/Digester.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/Digester.java (original)
+++ commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/Digester.java Tue Jun  7 00:54:06 2016
@@ -451,9 +451,9 @@ public class Digester
      * @param feature Name of the feature to inquire about
      * @return true, if the requested feature is supported by the underlying implementation of
      *         <code>org.xml.sax.XMLReader</code>, false otherwise
-     * @exception ParserConfigurationException if a parser configuration error occurs
-     * @exception SAXNotRecognizedException if the property name is not recognized
-     * @exception SAXNotSupportedException if the property name is recognized but not supported
+     * @throws ParserConfigurationException if a parser configuration error occurs
+     * @throws SAXNotRecognizedException if the property name is not recognized
+     * @throws SAXNotSupportedException if the property name is recognized but not supported
      */
     public boolean getFeature( String feature )
         throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
@@ -470,9 +470,9 @@ public class Digester
      *
      * @param feature Name of the feature to set the status for
      * @param value The new value for this feature
-     * @exception ParserConfigurationException if a parser configuration error occurs
-     * @exception SAXNotRecognizedException if the property name is not recognized
-     * @exception SAXNotSupportedException if the property name is recognized but not supported
+     * @throws ParserConfigurationException if a parser configuration error occurs
+     * @throws SAXNotRecognizedException if the property name is not recognized
+     * @throws SAXNotSupportedException if the property name is recognized but not supported
      */
     public void setFeature( String feature, boolean value )
         throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
@@ -668,8 +668,8 @@ public class Digester
      *
      * @param property Property name to be retrieved
      * @return the current value of the specified property for the underlying <code>XMLReader</code> implementation.
-     * @exception SAXNotRecognizedException if the property name is not recognized
-     * @exception SAXNotSupportedException if the property name is recognized but not supported
+     * @throws SAXNotRecognizedException if the property name is not recognized
+     * @throws SAXNotSupportedException if the property name is recognized but not supported
      */
     public Object getProperty( String property )
         throws SAXNotRecognizedException, SAXNotSupportedException
@@ -683,8 +683,8 @@ public class Digester
      *
      * @param property Property name to be set
      * @param value Property value to be set
-     * @exception SAXNotRecognizedException if the property name is not recognized
-     * @exception SAXNotSupportedException if the property name is recognized but not supported
+     * @throws SAXNotRecognizedException if the property name is not recognized
+     * @throws SAXNotSupportedException if the property name is recognized but not supported
      */
     public void setProperty( String property, Object value )
         throws SAXNotRecognizedException, SAXNotSupportedException
@@ -794,7 +794,7 @@ public class Digester
      * FIXME: there is a bug in JAXP/XERCES that prevent the use of a parser that contains a schema with a DTD.
      *
      * @return the XMLReader to be used for parsing the input document.
-     * @exception SAXException if no XMLReader can be instantiated
+     * @throws SAXException if no XMLReader can be instantiated
      */
     public XMLReader getXMLReader()
         throws SAXException
@@ -1571,8 +1571,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param file File containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      */
     public <T> T parse( File file )
         throws IOException, SAXException
@@ -1618,8 +1618,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param input Input source containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      */
     public <T> T parse( InputSource input )
         throws IOException, SAXException
@@ -1681,8 +1681,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param input Input stream containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      */
     public <T> T parse( InputStream input )
         throws IOException, SAXException
@@ -1725,8 +1725,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param reader Reader containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      */
     public <T> T parse( Reader reader )
         throws IOException, SAXException
@@ -1769,8 +1769,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param uri URI containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      */
     public <T> T parse( String uri )
         throws IOException, SAXException
@@ -1813,8 +1813,8 @@ public class Digester
      * @param <T> the type used to auto-cast the returned object to the assigned variable type
      * @param url URL containing the XML data to be parsed
      * @return the root element from the object stack (if any)
-     * @exception IOException if an input/output error occurs
-     * @exception SAXException if a parsing exception occurs
+     * @throws IOException if an input/output error occurs
+     * @throws SAXException if a parsing exception occurs
      * @since 1.8
      */
     public <T> T parse( URL url )

Modified: commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java (original)
+++ commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java Tue Jun  7 00:54:06 2016
@@ -355,7 +355,7 @@ public class FactoryCreateRule
      *
      * @param attributes Attributes passed to our factory creation element
      * @return An instance of our associated object creation factory, creating one if necessary
-     * @exception Exception if any error occurs
+     * @throws Exception if any error occurs
      */
     protected ObjectCreationFactory<?> getFactory( Attributes attributes )
         throws Exception

Modified: commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/binder/DigesterLoader.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/binder/DigesterLoader.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/binder/DigesterLoader.java (original)
+++ commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/binder/DigesterLoader.java Tue Jun  7 00:54:06 2016
@@ -314,9 +314,9 @@ public final class DigesterLoader
      * @param feature Name of the feature to set the status for
      * @param value The new value for this feature
      * @return This loader instance, useful to chain methods.
-     * @exception ParserConfigurationException if a parser configuration error occurs
-     * @exception SAXNotRecognizedException if the property name is not recognized
-     * @exception SAXNotSupportedException if the property name is recognized but not supported
+     * @throws ParserConfigurationException if a parser configuration error occurs
+     * @throws SAXNotRecognizedException if the property name is not recognized
+     * @throws SAXNotSupportedException if the property name is recognized but not supported
      * @since 3.3
      */
     public DigesterLoader setFeature( String feature, boolean value )

Modified: commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/plugins/PluginDeclarationRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/plugins/PluginDeclarationRule.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/plugins/PluginDeclarationRule.java (original)
+++ commons/proper/digester/trunk/core/src/main/java/org/apache/commons/digester3/plugins/PluginDeclarationRule.java Tue Jun  7 00:54:06 2016
@@ -58,7 +58,7 @@ public class PluginDeclarationRule
      * @param namespace The xml namespace in which the xml element which triggered this rule resides.
      * @param name The name of the xml element which triggered this rule.
      * @param attributes The set of attributes on the xml element which triggered this rule.
-     * @exception Exception if any error occurs
+     * @throws Exception if any error occurs
      */
     @Override
     public void begin( String namespace, String name, Attributes attributes )

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/CallMethodRuleTestCase.java Tue Jun  7 00:54:06 2016
@@ -705,7 +705,7 @@ public class CallMethodRuleTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      * 
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java Tue Jun  7 00:54:06 2016
@@ -143,7 +143,7 @@ public class NamespaceSnapshotTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      * 
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NodeCreateRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NodeCreateRuleTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NodeCreateRuleTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/NodeCreateRuleTestCase.java Tue Jun  7 00:54:06 2016
@@ -530,7 +530,7 @@ public class NodeCreateRuleTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      *
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/RuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/RuleTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/RuleTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/RuleTestCase.java Tue Jun  7 00:54:06 2016
@@ -527,7 +527,7 @@ public class RuleTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      *
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XIncludeTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XIncludeTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XIncludeTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XIncludeTestCase.java Tue Jun  7 00:54:06 2016
@@ -95,7 +95,7 @@ public class XIncludeTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      * 
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XMLSchemaTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XMLSchemaTestCase.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XMLSchemaTestCase.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/XMLSchemaTestCase.java Tue Jun  7 00:54:06 2016
@@ -143,7 +143,7 @@ public class XMLSchemaTestCase
      * Return an appropriate InputStream for the specified test file (which must be inside our current package.
      * 
      * @param name Name of the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     protected InputStream getInputStream( String name )
         throws IOException

Modified: commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/plugins/Utils.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/plugins/Utils.java?rev=1747105&r1=1747104&r2=1747105&view=diff
==============================================================================
--- commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/plugins/Utils.java (original)
+++ commons/proper/digester/trunk/core/src/test/java/org/apache/commons/digester3/plugins/Utils.java Tue Jun  7 00:54:06 2016
@@ -33,7 +33,7 @@ public class Utils
      * 
      * @param caller is always "this" for the calling object.
      * @param name is the test file we want
-     * @exception IOException if an input/output error occurs
+     * @throws IOException if an input/output error occurs
      */
     public static InputStream getInputStream( Object caller, String name )
         throws IOException