SonarSource/sonar-java — pull request #6 by rwegmann (2013-10-03 11:29:00+00:00)
Title: UndocumentedApi (squid) does not handle generic methods correctly

Hello,

we are using Sonar 3.7.1 and have stumbled on what we believe is an error of the UndocumentedApi check, as generic void methods are not processed correctly.

The following two methods report a "Document this method return value." error:
```java
/**
* @param ...
* @param value ...
*/
public void foo(T value) { // Compliant
}

/**
* @param value ...
*/
public void foo(T value) { // Non-Compliant - missing '@param '
}
```

I added a few test cases to the UndocumentedApi check, but I have not seen an obvious solution to the error and I believe it may be parser related.

Best regards,
Raúl

PS: I have not been able to create an issue in JIRA (the "SonarQube Java" project does not appear in the list of projects of the create issue dialog), so I'm reporting the issue here.