pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1746388 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java
Date Wed, 01 Jun 2016 05:38:24 GMT
Author: msahyoun
Date: Wed Jun  1 05:38:24 2016
New Revision: 1746388

URL: http://svn.apache.org/viewvc?rev=1746388&view=rev
Log:
PDFBOX-3353: use shared NumberFormat 

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java?rev=1746388&r1=1746387&r2=1746388&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceContentStream.java
Wed Jun  1 05:38:24 2016
@@ -63,9 +63,6 @@ public final class PDAppearanceContentSt
         }
     }
 
-    // number format
-    private final NumberFormat formatDecimal = NumberFormat.getNumberInstance(Locale.US);
-
     /**
      * Create a new appearance stream.
      *
@@ -98,9 +95,6 @@ public final class PDAppearanceContentSt
     {
         super(appearance, outputStream);
         setResources(appearance.getResources());
-
-        formatDecimal.setMaximumFractionDigits(4);
-        formatDecimal.setGroupingUsed(false);
     }
 
     /**



Mime
View raw message