diff --git a/pdf-toolbox/src/test/java/com/lowagie/examples/fonts/FullFontNames.java b/pdf-toolbox/src/test/java/com/lowagie/examples/fonts/FullFontNames.java index 04c521075..1c23b08f3 100644 --- a/pdf-toolbox/src/test/java/com/lowagie/examples/fonts/FullFontNames.java +++ b/pdf-toolbox/src/test/java/com/lowagie/examples/fonts/FullFontNames.java @@ -36,8 +36,8 @@ public static void main(String[] args) { String[][] names = bf.getFullFontName(); out.write("\n\nListing the full font name:\n\n"); for (String[] name : names) { - if (name[0].equals("3") && name[1].equals("1")) // Microsoft encoding - { + // Microsoft encoding + if (name[0].equals("3") && name[1].equals("1")) { out.write(name[3] + "\r\n"); } } diff --git a/pdf-toolbox/src/test/java/com/lowagie/examples/objects/Signing.java b/pdf-toolbox/src/test/java/com/lowagie/examples/objects/Signing.java index 33525a3ca..b7f46a7b6 100644 --- a/pdf-toolbox/src/test/java/com/lowagie/examples/objects/Signing.java +++ b/pdf-toolbox/src/test/java/com/lowagie/examples/objects/Signing.java @@ -44,7 +44,7 @@ public static void main(String[] args) { private static void addUnverifiedSignature(boolean visible) { try { - String visibility = visible == true ? "visible" : "invisible"; + String visibility = visible ? "visible" : "invisible"; String description = "Document with " + visibility + " signature"; System.out.println(description);