title: Move the contents of this initializer to a standard constructor or to field initializers
body: <p>As I installed Sonarlint plugin in my eclipse IDE, i got the above (Heading) Major Issue in Sonar Report.</p>
  <p><strong>The Code is:</strong></p>
  <pre><code>public class Demo
  {
  public static final Map&lt;String, String&gt; CARD_TYPES;
  
  static
      {
          CARD_TYPES = new HashMap&lt;String, String&gt;()
          {
              {  //Move the contents of this initializer to a standard constructor or to field* initializers
                  put(&quot;visa&quot;, &quot;001&quot;);
                  put(&quot;diner&quot;, &quot;002&quot;);
              }
          };
      }
  //..code goes here
  }
  </code></pre>
  <blockquote>
  <p>The Query is: what exactly should be done in above Static Block, to
  Resolve the above issue ?</p>
  </blockquote>