title: Java synchronized method
body: <p>Consider this code:</p>
  
  <pre><code>public synchronized void onSignalsTimeout(List&lt;SignalSpec&gt; specs) {
      if (specs != null &amp;&amp; specs.size() &gt; 0) {
          for (SignalSpec spec : specs) {
              ParsedCANSignal timeoutedSignal = new ParsedCANSignal();
              SignalsProvider.getInstance().setSignal(spec.name, spec.parent.parent.channel, timeoutedSignal);
          }
      }
  }
  </code></pre>
  
  <p>I've got simple question:
  When Thread 1 calls onSignalsTimeout method, can Thread 2 access objects that are accessed in that method?</p>
  
  <p>Can't find anywhere if 'synchronized' locks only access to this method or access to all objects used in this method.</p>