gitgabrio commented on code in PR #6614:
URL:
https://github.com/apache/incubator-kie-drools/pull/6614#discussion_r2889187224
##########
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/DateTimeEvalHelper.java:
##########
@@ -56,6 +57,8 @@ public static long valuedt(TemporalAccessor datetime, ZoneId
otherTimezoneOffset
return ((ZonedDateTime) datetime).toEpochSecond();
} else if (datetime instanceof OffsetDateTime) {
return ((OffsetDateTime) datetime).toEpochSecond();
+ } else if (datetime instanceof CustomZonedDateTime) {
Review Comment:
@AthiraHari77 could you please use the new java construct ->
```
else if (datetime instanceof CustomZonedDateTime customZonedDateTime) {
return customZonedDateTime.getZonedDateTime().toEpochSecond();
```
(it avoid the cast and simplify a bit the code)
--
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]