Author: tilman
Date: Mon Jun 9 00:04:27 2014
New Revision: 1601277
URL: http://svn.apache.org/r1601277
Log:
PDFBOX-1600: exception is not thrown in no-args constructor
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1601277&r1=1601276&r2=1601277&view=diff
==============================================================================
---
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
(original)
+++
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Mon Jun 9 00:04:27 2014
@@ -131,10 +131,8 @@ public class PDDocument implements Pagea
/**
* Constructor, creates a new PDF Document with no pages. You need to add
* at least one page for the document to be valid.
- *
- * @throws IOException If there is an error creating this document.
*/
- public PDDocument() throws IOException
+ public PDDocument()
{
document = new COSDocument();