title: SonarLint Use the primitive boolean expression here
body: <p>I have the following class Properties:</p>
  
  <pre><code>class Properties {
      private Boolean enabled;
  
      public Boolean getEnabled() {
          return enabled;
      }
  }
  </code></pre>
  
  <p>If I write the following code, SonarLint gives me a warning on the if condition saying "Use the primitive boolean expression here.".</p>
  
  <pre><code>if (!properties.getEnabled()) {
      return true;
  }
  // more code
  </code></pre>
  
  <p>Changing the if condition to the following shuts up the warning. But that less readable, that can't be what SonarLint wants or?</p>
  
  <pre><code>if (properties.getEnabled().equals(Boolean.FALSE)) {
      return true;
  }
  // more code
  </code></pre>
  
  <p>What exactly does SonarLint want me to do here? What is the problem?</p>