jbertram commented on code in PR #4408:
URL: https://github.com/apache/activemq-artemis/pull/4408#discussion_r1145296052


##########
artemis-commons/src/main/java/org/apache/activemq/artemis/logs/AuditLogger.java:
##########
@@ -2639,4 +2644,18 @@ static void isAutoDelete(Object source) {
 
    @LogMessage(id = 601766, value = "User {} is getting auto-delete property 
on target resource: {}", level = LogMessage.Level.INFO)
    void isAutoDelete(String user, Object source);
+
+   static void createdConnection(String protocol, Object connectionID, String 
remoteAddress) {

Review Comment:
   The difference is to disambiguate the two `createdConnection` methods from 
each other otherwise the code wouldn't even compile. Also, while there is a 
technical risk of NPE there is no practical risk because if the connection ID 
is `null` the code will fail before it even gets to the audit logging.



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