pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1659993 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
Date Sun, 15 Feb 2015 20:55:10 GMT
Author: tilman
Date: Sun Feb 15 20:55:10 2015
New Revision: 1659993

URL: http://svn.apache.org/r1659993
Log:
PDFBOX-2664: remove catch of exception that is never thrown

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java?rev=1659993&r1=1659992&r2=1659993&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
Sun Feb 15 20:55:10 2015
@@ -397,24 +397,10 @@ public class LucenePDFDocument
             if (info != null)
             {
                 addTextField(document, "Author", info.getAuthor());
-                try
-                {
-                    addTextField(document, "CreationDate", info.getCreationDate());
-                }
-                catch (IOException io)
-                {
-                    // ignore, bad date but continue with indexing
-                }
+                addTextField(document, "CreationDate", info.getCreationDate());
                 addTextField(document, "Creator", info.getCreator());
                 addTextField(document, "Keywords", info.getKeywords());
-                try
-                {
-                    addTextField(document, "ModificationDate", info.getModificationDate());
-                }
-                catch (IOException io)
-                {
-                    // ignore, bad date but continue with indexing
-                }
+                addTextField(document, "ModificationDate", info.getModificationDate());
                 addTextField(document, "Producer", info.getProducer());
                 addTextField(document, "Subject", info.getSubject());
                 addTextField(document, "Title", info.getTitle());



Mime
View raw message