sabberworm commented on code in PR #1054:
URL: https://github.com/apache/tomcat/pull/1054#discussion_r3871882503


##########
java/org/apache/tomcat/util/http/FastHttpDateFormat.java:
##########
@@ -185,5 +193,14 @@ private static void updateParseCache(String key, Long 
value) {
         parseCache.put(key, value);
     }
 
-
+    @FunctionalInterface
+    interface TryParseDateToTimestamp {
+        /**
+         * Tries to parse the given string as a date and returns it as a 
timestamp.
+         *
+         * @param dateString the string representation of the date trying to 
be parsed
+         * @return the number of *milli*seconds since January 1, 1970, 
00:00:00 GMT or -1 if parsing failed

Review Comment:
   ```suggestion
            * @return the number of <em>milli</em>seconds since January 1, 
1970, 00:00:00 GMT or -1 if parsing failed
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to