[ https://issues.apache.org/jira/browse/ARTEMIS-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258305#comment-15258305 ]
Justin Bertram commented on ARTEMIS-382: ---------------------------------------- Why exactly is this a defect? > Synchronization performed on java.util.concurrent.ConcurrentLinkedDeque > object in class NettyConnection > ------------------------------------------------------------------------------------------------------- > > Key: ARTEMIS-382 > URL: https://issues.apache.org/jira/browse/ARTEMIS-382 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.1.0 > Reporter: Martin Styk > Priority: Minor > > Static code analysis tool discovered defect in class NettyConnection. > There is performed synchronisation on > java.util.concurrent.ConcurrentLinkedDeque object in method public void > fireReady(final boolean ready) . > Affected part of code : > private final ConcurrentLinkedDeque<ReadyListener> readyListeners = new > ConcurrentLinkedDeque<>(); > public void fireReady(final boolean ready) { > synchronized (readyListeners) { > this.ready = ready; > ..... > } > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)