You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/06/21 03:54:50 UTC
svn commit: r1861728 -
/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingView.java
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))
{