pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865493 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java
Date Mon, 19 Aug 2019 17:00:35 GMT
Author: tilman
Date: Mon Aug 19 17:00:35 2019
New Revision: 1865493

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

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java?rev=1865493&r1=1865492&r2=1865493&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSBoolean.java Mon Aug 19 17:00:35
2019
@@ -29,11 +29,11 @@ public final class COSBoolean extends CO
     /**
      * The true boolean token.
      */
-    public static final byte[] TRUE_BYTES = new byte[]{ 116, 114, 117, 101 }; //"true".getBytes(
"ISO-8859-1" );
+    public static final byte[] TRUE_BYTES = new byte[] { 116, 114, 117, 101 }; // "true".getBytes("ISO-8859-1")
     /**
      * The false boolean token.
      */
-    public static final byte[] FALSE_BYTES = new byte[]{ 102, 97, 108, 115, 101 }; //"false".getBytes(
"ISO-8859-1" );
+    public static final byte[] FALSE_BYTES = new byte[] { 102, 97, 108, 115, 101 }; // "false".getBytes("ISO-8859-1")
 
     /**
      * The PDF true value.
@@ -74,7 +74,7 @@ public final class COSBoolean extends CO
      */
     public Boolean getValueAsObject()
     {
-        return (value?Boolean.TRUE:Boolean.FALSE);
+        return value ? Boolean.TRUE : Boolean.FALSE;
     }
 
     /**
@@ -86,7 +86,7 @@ public final class COSBoolean extends CO
      */
     public static COSBoolean getBoolean( boolean value )
     {
-        return (value?TRUE:FALSE);
+        return value ? TRUE : FALSE;
     }
 
     /**



Mime
View raw message