Author: msahyoun
Date: Sun Mar 11 20:53:50 2018
New Revision: 1826460

URL: http://svn.apache.org/viewvc?rev=1826460&view=rev
Log:
PDFBOX-4071: remove @throws declaration where exception will not be thrown

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1826460&r1=1826459&r2=1826460&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java 
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java 
Sun Mar 11 20:53:50 2018
@@ -141,9 +141,8 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
-     * @throws IOException If there is an error getting the object
      */
-    public COSObject getObjectByType(COSName type) throws IOException
+    public COSObject getObjectByType(COSName type)
     {
         for( COSObject object : objectPool.values() )
         {
@@ -182,9 +181,8 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
-     * @throws IOException If there is an error getting the object
      */
-    public List<COSObject> getObjectsByType( String type ) throws IOException
+    public List<COSObject> getObjectsByType( String type )
     {
         return getObjectsByType( COSName.getPDFName( type ) );
     }
@@ -195,9 +193,8 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
-     * @throws IOException If there is an error getting the object
      */
-    public List<COSObject> getObjectsByType( COSName type ) throws IOException
+    public List<COSObject> getObjectsByType( COSName type )
     {
         List<COSObject> retval = new ArrayList<>();
         for( COSObject object : objectPool.values() )
@@ -521,10 +518,8 @@ public class COSDocument extends COSBase
      * @param key The object key.
      *
      * @return The object in the pool or a new one if it has not been parsed 
yet.
-     *
-     * @throws IOException If there is an error getting the proxy object.
      */
-    public COSObject getObjectFromPool(COSObjectKey key) throws IOException
+    public COSObject getObjectFromPool(COSObjectKey key)
     {
         COSObject obj = null;
         if( key != null )


Reply via email to