aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources/metrics/accessors/JavaBeanWithApiDoc.java
blob: 0a5d146ed063a746290adfa37fcf51c54bf4d59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class JavaBeanWithAPIDoc {
  
  /**
   * Not to count
   */
  private String testVar;
  
  /**
   * To count
   */
  public String testVar2;
  
  /**
   * This api doc should not be counted not its complexity
   * @return
   */
  public String getTest() {
    return testVar;
  }
  
  /**
   * This api doc should be counted
   * @return
   */
  public String getTest2() {
    return "test";
  }
  
}