bitcoinj/bitcoinj — pull request #82 by qertoip (2014-05-31 13:08:16+00:00)
Title: Replaced Lock with higher-level synchronized keyword in PeerSocketHandler

* Removed unnecessary lock in PeerSocketHandler.sendMessage() as it wrapped only atomic null-checking.
* Replaced Lock with synchronized keyword in setWriteTarget() and close().
* Semantics should not change (but please do review).