From commits-return-15870-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Fri Oct 11 17:18:42 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EDFA2180656 for ; Fri, 11 Oct 2019 19:18:41 +0200 (CEST) Received: (qmail 86399 invoked by uid 500); 11 Oct 2019 17:18:41 -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 86386 invoked by uid 99); 11 Oct 2019 17:18:41 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2019 17:18:41 +0000 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 59A0F3A0A6C for ; Fri, 11 Oct 2019 17:18:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1868308 - /pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java Date: Fri, 11 Oct 2019 17:18:39 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20191011171840.59A0F3A0A6C@svn01-us-west.apache.org> Author: tilman Date: Fri Oct 11 17:18:39 2019 New Revision: 1868308 URL: http://svn.apache.org/viewvc?rev=1868308&view=rev Log: PDFBOX-4071: SonarQube fix: move variables to comply with java code conventions Modified: pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java Modified: pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java?rev=1868308&r1=1868307&r2=1868308&view=diff ============================================================================== --- pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java (original) +++ pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/ttf/OS2WindowsMetricsTable.java Fri Oct 11 17:18:39 2019 @@ -177,6 +177,44 @@ public class OS2WindowsMetricsTable exte */ public static final short FSTYPE_BITMAP_ONLY = 0x0200; + private int version; + private short averageCharWidth; + private int weightClass; + private int widthClass; + private short fsType; + private short subscriptXSize; + private short subscriptYSize; + private short subscriptXOffset; + private short subscriptYOffset; + private short superscriptXSize; + private short superscriptYSize; + private short superscriptXOffset; + private short superscriptYOffset; + private short strikeoutSize; + private short strikeoutPosition; + private int familyClass; + private byte[] panose = new byte[10]; + private long unicodeRange1; + private long unicodeRange2; + private long unicodeRange3; + private long unicodeRange4; + private String achVendId = "XXXX"; + private int fsSelection; + private int firstCharIndex; + private int lastCharIndex; + private int typoAscender; + private int typoDescender; + private int typoLineGap; + private int winAscent; + private int winDescent; + private long codePageRange1 = 0; + private long codePageRange2 = 0; + private int sxHeight; + private int sCapHeight; + private int usDefaultChar; + private int usBreakChar; + private int usMaxContext; + OS2WindowsMetricsTable(TrueTypeFont font) { super(font); @@ -734,44 +772,6 @@ public class OS2WindowsMetricsTable exte return usMaxContext; } - private int version; - private short averageCharWidth; - private int weightClass; - private int widthClass; - private short fsType; - private short subscriptXSize; - private short subscriptYSize; - private short subscriptXOffset; - private short subscriptYOffset; - private short superscriptXSize; - private short superscriptYSize; - private short superscriptXOffset; - private short superscriptYOffset; - private short strikeoutSize; - private short strikeoutPosition; - private int familyClass; - private byte[] panose = new byte[10]; - private long unicodeRange1; - private long unicodeRange2; - private long unicodeRange3; - private long unicodeRange4; - private String achVendId = "XXXX"; - private int fsSelection; - private int firstCharIndex; - private int lastCharIndex; - private int typoAscender; - private int typoDescender; - private int typoLineGap; - private int winAscent; - private int winDescent; - private long codePageRange1 = 0; - private long codePageRange2 = 0; - private int sxHeight; - private int sCapHeight; - private int usDefaultChar; - private int usBreakChar; - private int usMaxContext; - /** * A tag that identifies this table type. */