title: Sonarqube saying "String literal expressions should be on the left side of an equals comparison" for non-String types
body: <p>I'm using Sonarqube to analyze my Java code, and I'm getting several issues with the message:</p>
  
  <blockquote>
    <p>String literal expressions should be on the left side of an equals comparison</p>
  </blockquote>
  
  <p>This is easy to solve with strings, flipping the order to avoid possible <code>NullPointerException</code>s</p>
  
  <pre><code>//From this:
  myString.equals("otherString");
  
  //To this:
  "otherString".equals(myString);
  </code></pre>
  
  <p>However, I'm having these problems with non-String types, such as in the following code:</p>
  
  <pre><code>if (myObject.getIntegerAttribute.equals(1)){ // &lt;-Sonarqube shows the issue here
      // ...
  }
  </code></pre>
  
  <p>Since I can't flip the "1" as it is a primitive type and doesn't have an <code>equals()</code> method, how can I solve these issues?</p>