pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1654349 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java
Date Fri, 23 Jan 2015 19:46:47 GMT
Author: tilman
Date: Fri Jan 23 19:46:46 2015
New Revision: 1654349

URL: http://svn.apache.org/r1654349
Log:
PDFBOX-2576: fix typo; make class with private constructor final

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java?rev=1654349&r1=1654348&r2=1654349&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontFactory.java Fri
Jan 23 19:46:46 2015
@@ -28,7 +28,7 @@ import org.apache.commons.logging.LogFac
  * Creates the appropriate font subtype based on information in the dictionary.
  * @author Ben Litchfield
  */
-public class PDFontFactory
+public final class PDFontFactory
 {
     private static final Log LOG = LogFactory.getLog(PDFontFactory.class);
 
@@ -88,7 +88,7 @@ public class PDFontFactory
         }
         else if (COSName.CID_FONT_TYPE2.equals(subType))
         {
-            throw new IllegalArgumentException("Type 0 descendant font not allowed");
+            throw new IllegalArgumentException("Type 2 descendant font not allowed");
         }
         else
         {



Mime
View raw message