I’m using sonarqube-ant-task-2.7.0.1612.jar to scan a java project and I’m seeing the following errors over and over again on my source files:
Parse error at line XXX column XX: Type annotation are not allowed to type names used to access static members
The code in question involves:
public Double getValue(@NonNull String key) {
SonarQube is complianing about the placement of the @NonNull annotation - is there any way to fix this up (without changing the source) so that it will parse these files correctly?