title: Writing to a static variable in an instance method, why is this a bad practice?
body: <p>I am a little confused here with this findbugs warning in eclipse. </p>
  
  <pre><code>public class MyClass {
      public static String myString;
  }
  
  
  public class AnotherClass {
     public void doSomething() {
         MyClass.myString = "something";
     }
  }
  </code></pre>
  
  <p>This gives me a findbugs warning "write to static field from instance method", however this does not give me a warning:</p>
  
  <pre><code>public class MyClass {
      public static String myString;
  }
  
  
  public class AnotherClass {
     public void doSomething() {
         doAnotherThing();
     }
     public static doAnotherThing() {
         MyClass.myString = "something";
     }
  }
  </code></pre>
  
  <p>How is this any different?, and why is writing to a static variable from an instance method a bad practice?, I assume it has to do with synchronization, but it is still not clear to me.</p>
  
  <p>I know this looks like the variable should be final, but I am loading the value from a properties file.</p>