pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861727 - /pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java
Date Fri, 21 Jun 2019 03:54:45 GMT
Author: tilman
Date: Fri Jun 21 03:54:44 2019
New Revision: 1861727

URL: http://svn.apache.org/viewvc?rev=1861727&view=rev
Log:
PDFBOX-2941: SonarQube fix

Modified:
    pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java

Modified: pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java?rev=1861727&r1=1861726&r2=1861727&view=diff
==============================================================================
--- pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java
(original)
+++ pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java
Fri Jun 21 03:54:44 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))
                 {



Mime
View raw message