diff options
author | Godin <mandrikov@gmail.com> | 2010-11-28 22:14:19 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-28 22:14:19 +0000 |
commit | a28163d9dee455299869ee2729e1aacb871d0f8c (patch) | |
tree | 63e952c9614ea34f2e94ee5dffff8bd30e33d712 /plugins/sonar-squid-java-plugin/test-resources | |
parent | 28654fbd5d119abae90049bb81c421dec4d9eacb (diff) | |
download | sonarqube-a28163d9dee455299869ee2729e1aacb871d0f8c.tar.gz sonarqube-a28163d9dee455299869ee2729e1aacb871d0f8c.zip |
SONAR-2015: Fix inconsistency between Undocumented API measure and Undocumented API violations
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
-rw-r--r-- | plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java b/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java index 2a26c5b19a4..4f075dfbf36 100644 --- a/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java +++ b/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java @@ -1,9 +1,25 @@ /** - * JavaDoc + * no violation, because documented */ class UndocumentedApi { + private String key; - public void run() { + public UndocumentedApi() { // no violation, because empty constructor } + public void run() { // violation + } + + public void setKey(String key) { // no violation, because setter + this.key = key; + } + + public String getKey() { // no violation, because getter + return key; + } + + @Override + public String toString() { // no violation, because method with override annotation + return key; + } } |