title: java synchronized keyword needed on primitive getter / setter method?
body: <p>I read some java code, and found these functions:</p>
  
  <pre><code>synchronized void setConnected(boolean connected){
     this.connected = connected;
  }
  
  synchronized boolean isConnected(){
     return connected;
  }
  </code></pre>
  
  <p>I wonder if synchronization makes any sense here, or just author didn't understand the need for synchronized keyword?</p>
  
  <p>I'd suppose that synchronized is useless here. Or am I mistaken?</p>