mbegerau commented on code in PR #9796:
URL: https://github.com/apache/nifi/pull/9796#discussion_r1990229859


##########
nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java:
##########
@@ -242,11 +244,13 @@ public static Instant parseToInstant(DateTimeFormatter 
formatter, String text) {
             throw new IllegalArgumentException("Text cannot be null");
         }
 
-        TemporalAccessor parsed = formatter.parseBest(text, Instant::from, 
LocalDateTime::from, LocalDate::from, LocalTime::from);
+        TemporalAccessor parsed = formatter.parseBest(text, Instant::from, 
LocalDateTime::from, LocalDate::from, YearMonth::from, Year::from, 
LocalTime::from);

Review Comment:
   That is actually the reason why it did not put them to the end, because the 
LocalTime type is handled last in the following switch statement as the default 
case.



-- 
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]

Reply via email to