- SonarQube 7.7 (but same issue occured with version 6.9 and following)
- Scanner 3.3
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
steps to reproduce
For some reasons the code have methods which throws multiple checked exceptions.
The problem is that it seems that the scanner is a bit lost when parsing it.
Here is an example of code which generates the problem:
Stream<Event> fetch() throws FetchException, NotAuthenticatedException;
All theses two exceptions extends Exception. They are declared in implemented interface. Nothing who justify the “unknownSymbol”.
My assumptions are: the scanner get lost somehow -> read an unknownSymbol and then is not able to determine with accuracy if the rule should succeed or not.
Any help is welcome thank you in advance
I have to mark manually as wrong positive…