title: build failed Error: java: USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES how to fix spot bug reported issue
body: <p>I am facing <code>Error: java: USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES</code> and build gets failed for setter method. it is reported by spotbugs. How to fix this please help as not getting solution.
  Below is the class MySuperServiceConfig.</p>
  <pre><code>@Component
  @ConfigurationProperties(&quot;mysuperservice&quot;)
  @PropertySource(&quot;classpath:data.properties&quot;)
  public class MySuperServiceConfig {
    private String username;
    private String password;
    private List&lt;String&gt; schemadata;
  
    public String getUsername() {
      return username;
    }
  
    public void setUsername(String username) {
      this.username = username;
    }
  
    public String getPassword() {
      return password;
    }
  
    public void setPassword(String password) {
      this.password = password;
    }
  
    public List&lt;String&gt; getSchemadata() {
      return schemadata;
    }
  
    public void setSchemadata(List&lt;String&gt; schemadata) {
      this.schemadata = schemadata;
    }
  }
  </code></pre>
  <p>Below is the log</p>
  <pre><code>[INFO] --- spotbugs-maven-plugin:3.1.12.2:check (default) @ aif-handler ---
  [INFO] BugInstance size is 3
  [INFO] Error size is 0
  [INFO] Total bugs: 3
  [ERROR] Method com.test.service.fileparser.MySuperServiceConfig.setPassword(String) of Singleton class writes to a field in an unsynchronized manner [com.amex.scs.aif.service.fileparser.MySuperServiceConfig] At MySuperServiceConfig.java:[line 29] USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES
  [ERROR] Method com.test.service.fileparser.MySuperServiceConfig.setSchemadata(List) of Singleton class writes to a field in an unsynchronized manner [com.amex.scs.aif.service.fileparser.MySuperServiceConfig] At MySuperServiceConfig.java:[line 37] USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES
  [ERROR] Method com.test.service.fileparser.MySuperServiceConfig.setUsername(String) of Singleton class writes to a field in an unsynchronized manner [com.amex.scs.aif.service.fileparser.MySuperServiceConfig] At MySuperServiceConfig.java:[line 21] USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES
  </code></pre>