title: How do I ignore duplicated code report in Sonar?
body: <p>SonarQube reports as &quot;block of duplicated code&quot; to different simple POJO class like below.
  In this case, A and B are different role. So, I think that I should not create abstract class.</p>
  <pre><code>public class A{
    private String xxx;
  
    // omitted other fields.
  
    public A() {}
  
    public String getXxx() {
       return xxx;
    }
    public void setXxx(String xxx) {
       this.xxx= xxx;
    }
  
    // omitted other fields' setter and getter
  
  }
  
  public class B{
    private String xxx;
  
    // omitted other fields.
  
    public B() {}
  
    public String getXxx() {
       return xxx;
    }
    public void setXxx(String xxx) {
       this.xxx= xxx;
    }
  
    // omitted other fields' setter and getter
  
  }
  </code></pre>
  <p>The severity is major. So, I would like to ignore it. Then, I added <code>@SuppressWarning(&quot;common-java:DuplicatedBlocks&quot;)</code> and <code>@SuppressWarning(&quot;all&quot;)</code> to both classes. But it could not be ignored.</p>
  <p>Though similar question was raised in <a href="https://jira.sonarsource.com/browse/SONARJAVA-521" rel="nofollow noreferrer">JIRA</a>, but it have been not solved. My SonarQube's version is 6.5.</p>