pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1870957 - /pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java
Date Sat, 07 Dec 2019 06:02:02 GMT
Author: tilman
Date: Sat Dec  7 06:02:02 2019
New Revision: 1870957

URL: http://svn.apache.org/viewvc?rev=1870957&view=rev
Log:
PDFBOX-4071: remove unneeded null check that confuses Sonar

Modified:
    pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java

Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java?rev=1870957&r1=1870956&r2=1870957&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java
(original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/util/DateConverter.java
Sat Dec  7 06:02:02 2019
@@ -343,8 +343,9 @@ public final class DateConverter
      */
     private static char skipOptionals(String text, ParsePosition where, String optionals)
     {
-        char retval = ' ', currch;
-        while (text != null && where.getIndex() < text.length() &&
+        char retval = ' ';
+        char currch;
+        while (where.getIndex() < text.length() &&
                optionals.indexOf((currch = text.charAt(where.getIndex()))) >= 0)
         {
             retval = (currch != ' ') ? currch : retval;



Mime
View raw message