Method synchronizes on an updated field
<p>My java code looks like this:</p>

<pre><code>class xHandler
{
    private Channel _channel;

    // Methods...

    void init()
    {
        _channel = new Channel(...);

        synchronized (_channel)
        {
            // Do some stuff here...e.g.
            _channel.send("...");
        }
    }
}
</code></pre>

<p>In other files(threads) I create instances of Channel and send stuff with the use of the object, but only in the init method mentioned above I need it to be sync'ed and no other thread should open a channel and send something during this period.</p>

<p>FindBugs gives me a warning called: Method synchronizes on an updated field</p>

<p><em>This method synchronizes on an object referenced from a mutable field.
This is unlikely to have useful semantics, since different threads may be synchronizing on different objects.</em></p>

<p>How can I get this issue right? Is it possible to trigger this issue easily with a simple test?</p>
