title: Eclipse Java formatter: blank lines
body: <p>i am trying to adjust the code formatter settings in eclipse to my wishes.</p>
  
  <p>That is my (unformatted) example code:</p>
  
  <pre><code>public class Test {    
      /**
       * Test 1.
       */
      public void test() {
          System.out.println("Blub");
      }
  
      /**
       * Test 2.
       */
      public void test2() {
          System.out.println("Blub");
      }
  
  
  
  
  }
  </code></pre>
  
  <p>After formatting (eclipse standard settings) the code looks like this:</p>
  
  <pre><code>public class Test {
      /**
       * Test 1.
       */
      public void test() {
          System.out.println("Blub");
      }
  
      /**
       * Test 2.
       */
      public void test2() {
          System.out.println("Blub");
      }
  
  }
  </code></pre>
  
  <p>I tried everything to adjust the formatter settings to get this result:</p>
  
  <ol>
  <li><p>Add a blank before the first java doc comment.</p></li>
  <li><p>Remove the last blank line (before the closing braces of the class declaration).</p></li>
  </ol>
  
  <p>How can i achieve this or is it not possible to configure this in eclipse? </p>