title: What's the best way to fix this 'write to static field from instance method' findbugs warning?
body: <p>I have a class that looks similar to this, and findbugz is complaining about the 'write to the static field from the instance method' (<code>initialize()</code>, and <code>killStaticfield()</code>). I can't set the static field in the ctor. </p>
  
  <ul>
  <li>What is the best fix for this issue? </li>
  <li><p>Would putting staticField in an AtomicReference suffice? </p>
  
  <pre><code> public class Something
   {
    private static SomeClass staticField = null;
    private AnotherClass aClass;
    public Something()
    {
  
    }
  
    public void initialize()
    {
      //must be ctor'd in initialize
      aClass = new AnotherClass();
      staticField = new SomeClass( aClass );
    }
  
    public void killStaticField()
    {
     staticField = null;
    }
  
    public static void getStaticField()
    {
      return staticField;
    }
  }
  </code></pre></li>
  </ul>