Copilot commented on code in PR #4218:
URL: https://github.com/apache/streampark/pull/4218#discussion_r2020049333


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/application/impl/FlinkApplicationActionServiceImpl.java:
##########
@@ -534,6 +534,8 @@ private ApplicationLog constructAppLog(FlinkApplication 
application) {
         applicationLog.setAppId(application.getId());
         applicationLog.setOptionTime(new Date());
         applicationLog.setUserId(ServiceHelper.getUserId());
+        Date date = new Date();

Review Comment:
   [nitpick] A new Date instance is created for setting createTime while 
optionTime is already initialized with a separate Date. If both timestamps are 
intended to reflect the same moment, consider reusing the same Date instance.
   ```suggestion
           Date date = new Date();
           applicationLog.setOptionTime(date);
           applicationLog.setUserId(ServiceHelper.getUserId());
   ```



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