Author: msahyoun
Date: Sun Mar 11 20:51:23 2018
New Revision: 1826459

URL: http://svn.apache.org/viewvc?rev=1826459&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/COSDictionary.java

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java?rev=1826459&r1=1826458&r2=1826459&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java 
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java 
Sun Mar 11 20:51:23 2018
@@ -900,9 +900,8 @@ public class COSDictionary extends COSBa
      * @param embedded The embedded dictionary to get.
      * @param key The key to the item in the dictionary.
      * @return The name converted to a string.
-     * @throws IOException If there is an error converting to a date.
      */
-    public Calendar getEmbeddedDate(String embedded, String key) throws 
IOException
+    public Calendar getEmbeddedDate(String embedded, String key)
     {
         return getEmbeddedDate(embedded, COSName.getPDFName(key), null);
     }
@@ -914,10 +913,8 @@ public class COSDictionary extends COSBa
      * @param embedded The embedded dictionary to get.
      * @param key The key to the item in the dictionary.
      * @return The name converted to a string.
-     *
-     * @throws IOException If there is an error converting to a date.
      */
-    public Calendar getEmbeddedDate(String embedded, COSName key) throws 
IOException
+    public Calendar getEmbeddedDate(String embedded, COSName key)
     {
         return getEmbeddedDate(embedded, key, null);
     }
@@ -930,10 +927,8 @@ public class COSDictionary extends COSBa
      * @param key The key to the item in the dictionary.
      * @param defaultValue The default value to return.
      * @return The name converted to a string.
-     * @throws IOException If there is an error converting to a date.
      */
     public Calendar getEmbeddedDate(String embedded, String key, Calendar 
defaultValue)
-            throws IOException
     {
         return getEmbeddedDate(embedded, COSName.getPDFName(key), 
defaultValue);
     }
@@ -946,10 +941,8 @@ public class COSDictionary extends COSBa
      * @param key The key to the item in the dictionary.
      * @param defaultValue The default value to return.
      * @return The name converted to a string.
-     * @throws IOException If there is an error converting to a date.
      */
     public Calendar getEmbeddedDate(String embedded, COSName key, Calendar 
defaultValue)
-            throws IOException
     {
         Calendar retval = defaultValue;
         COSDictionary eDic = (COSDictionary) getDictionaryObject(embedded);


Reply via email to