ilgrosso commented on code in PR #1059:
URL: https://github.com/apache/syncope/pull/1059#discussion_r2058267567


##########
client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/extensions/markup/html/repeater/data/table/DatePropertyColumn.java:
##########
@@ -48,12 +49,14 @@ public void populateItem(final Item<ICellPopulator<T>> 
item, final String compon
         IModel<?> date = getDataModel(rowModel);
 
         String convertedDate = "";
-        if (date.getObject() instanceof final OffsetDateTime offsetDateTime) {
-            convertedDate = 
SyncopeConsoleSession.get().getDateFormat().format(offsetDateTime);
-        } else if (date.getObject() instanceof final ZonedDateTime 
zonedDateTime) {
-            convertedDate = 
SyncopeConsoleSession.get().getDateFormat().format(zonedDateTime);
-        } else if (date.getObject() instanceof final Date date1) {
-            convertedDate = 
SyncopeConsoleSession.get().getDateFormat().format(date1);
+        if (date.getObject() instanceof OffsetDateTime) {

Review Comment:
   Please restore the previous form for all entries, e.g.
   
   ```java
   if (date.getObject() instanceof final ZonedDateTime zonedDateTime) {
     convertedDate = 
SyncopeConsoleSession.get().getDateFormat().format(zonedDateTime);
   }
   ```
   
   not
   
   ```java
   if (date.getObject() instanceof ZonedDateTime) {
     convertedDate = 
SyncopeConsoleSession.get().getDateFormat().format((ZonedDateTime) 
date.getObject());
   }
   ```



-- 
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: dev-unsubscr...@syncope.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to