title: Synthetic accessor method warning
body: <p>I've made some new warning settings in eclipse. With these new settings I'm facing a strange warning. After reading I got to know what it is but couldn't find a way to remove it.</p>
  
  <p>Here is my problem with the sample code</p>
  
  <pre><code>public class Test {
      private String testString;
  
      public void performAction() {
  
          new Thread( new Runnable() {
              @Override
              public void run() {
                  testString = "initialize"; // **
              }
          });
      }
  }
  </code></pre>
  
  <p>The line with <em>*</em>* gives me a warning in eclipse</p>
  
  <pre><code>Read access to enclosing field Test.testString is emulated by a synthetic accessor method. 
  Increasing its visibility will improve your performance.
  </code></pre>
  
  <p>Problem is, I don't want to change the access modifier of <code>testString</code>. 
  Also, don't want to create a getter for it.</p>
  
  <p>What change should be done?</p>
  
  <hr>
  
  <pre><code>More descriptive example 
  
  public class Synthetic
  {
      private JButton testButton;
  
      public Synthetic()
      {
          testButton = new JButton("Run");
          testButton.addActionListener(new ActionListener() {
                  public void actionPerformed(ActionEvent ae)
                  {
                      /* Sample code */
                      if( testButton.getText().equals("Pause") ) {
                          resetButton(); // **    
                      } else if( testButton.getText().equals("Run") ) {
                          testButton.setText("Pause"); // **  
                      }
  
                  }
              }
          );
      }
  
      public void reset() {
          //Some operations
          resetButton();
      }
  
      private void resetButton() {
          testButton.setText("Run");
      }
  }
  </code></pre>
  
  <p>Lines with <code>**</code> gives me the same warning.</p>