Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9598B200B13 for ; Wed, 1 Jun 2016 07:38:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94457160A47; Wed, 1 Jun 2016 05:38:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB330160A41 for ; Wed, 1 Jun 2016 07:38:29 +0200 (CEST) Received: (qmail 36893 invoked by uid 500); 1 Jun 2016 05:38:28 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 36884 invoked by uid 99); 1 Jun 2016 05:38:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 05:38:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6252FC249A for ; Wed, 1 Jun 2016 05:38:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KyuXOSZC4H1G for ; Wed, 1 Jun 2016 05:38:26 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 750345FBBE for ; Wed, 1 Jun 2016 05:38:26 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 97D29E00A4 for ; Wed, 1 Jun 2016 05:38:25 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id BD8D53A01A9 for ; Wed, 1 Jun 2016 05:38:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@pdfbox.apache.org From: msahyoun@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160601053824.BD8D53A01A9@svn01-us-west.apache.org> archived-at: Wed, 01 Jun 2016 05:38:30 -0000 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); } /**