Document lock.wait(..) idiom in SourceReceiver Thread
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/bbc509c6 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/bbc509c6 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/bbc509c6 Branch: refs/heads/master Commit: bbc509c654a1ef711fa1e93ebaa67b6a81f5874d Parents: b609357 Author: Thiago Kronig <caa_tkro...@uolinc.com> Authored: Fri May 8 20:22:29 2015 -0300 Committer: Clebert Suconic <clebertsuco...@apache.org> Committed: Thu May 21 19:45:01 2015 -0400 ---------------------------------------------------------------------- .../org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/bbc509c6/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java ---------------------------------------------------------------------- diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java index c8d7e13..5881e0d 100644 --- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java +++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java @@ -1878,6 +1878,7 @@ public final class JMSBridgeImpl implements JMSBridge } @Override + @SuppressWarnings("WaitNotInLoop") // both lock.wait(..) either returns, throws or continue, thus avoiding spurious wakes public void run() { while (started)