From commits-return-14868-apmail-pdfbox-commits-archive=pdfbox.apache.org@pdfbox.apache.org Fri Jun 21 03:54:51 2019 Return-Path: X-Original-To: apmail-pdfbox-commits-archive@www.apache.org Delivered-To: apmail-pdfbox-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 439C319985 for ; Fri, 21 Jun 2019 03:54:51 +0000 (UTC) Received: (qmail 5374 invoked by uid 500); 21 Jun 2019 03:54:50 -0000 Delivered-To: apmail-pdfbox-commits-archive@pdfbox.apache.org Received: (qmail 5333 invoked by uid 500); 21 Jun 2019 03:54:50 -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 5324 invoked by uid 99); 21 Jun 2019 03:54:50 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2019 03:54:50 +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 2D9B23A0102 for ; Fri, 21 Jun 2019 03:54:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1861728 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java Date: Fri, 21 Jun 2019 03:54:50 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20190621035450.2D9B23A0102@svn01-us-west.apache.org> Author: tilman Date: Fri Jun 21 03:54:49 2019 New Revision: 1861728 URL: http://svn.apache.org/viewvc?rev=1861728&view=rev Log: PDFBOX-2941: SonarQube fix Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java?rev=1861728&r1=1861727&r2=1861728&view=diff ============================================================================== --- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java (original) +++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java Fri Jun 21 03:54:49 2019 @@ -114,7 +114,7 @@ class FontEncodingView while (keys.hasNext()) { int fontSize = Integer.parseInt(PDFDebugger.configuration.getProperty( - "headerFontSize", "" + headerPanel.getFont().getSize())); + "headerFontSize", Integer.toString(headerPanel.getFont().getSize()))); String key = keys.next(); JLabel encodingNameLabel = new JLabel(key + ": " + attributes.get(key)); encodingNameLabel.setFont(new Font(Font.DIALOG, Font.PLAIN, fontSize)); @@ -157,7 +157,7 @@ class FontEncodingView { JLabel label = new JLabel(SimpleFont.NO_GLYPH, SwingConstants.CENTER); int fontSize = Integer.parseInt(PDFDebugger.configuration.getProperty( - "encodingFontSize", "" + label.getFont().getSize())); + "encodingFontSize", Integer.toString(label.getFont().getSize()))); label.setFont(new Font(Font.DIALOG, Font.PLAIN, fontSize)); label.setForeground(Color.GRAY); return label; @@ -204,7 +204,7 @@ class FontEncodingView { JLabel label = new JLabel(o.toString(), SwingConstants.CENTER); int fontSize = Integer.parseInt(PDFDebugger.configuration.getProperty( - "encodingFontSize", "" + label.getFont().getSize())); + "encodingFontSize", Integer.toString(label.getFont().getSize()))); label.setFont(new Font(Font.DIALOG, Font.PLAIN, fontSize)); if (SimpleFont.NO_GLYPH.equals(o) || ".notdef".equals(o)) {