Well, Event Bus doesn't have a problem with it, even though it makes little sense. I would leave it.
No matter our opinion on throws on unchecked exceptions, the documentation in the README is still needed.
Write that shit yourself.
If I were to implement this, multiple other methods in the code base have to be adjusted, as well as their Javadoc. Are you in favor of this?
Why? This is completely arbitrary. So the NullPointerException
should be removed frmo the Javadoc in that case?
In that case, however, the code base would already violate compliance, as we don't declare throws NullPointerException
for example. Also, we would have to consider all unchecked exceptions…
Because we decided against that for our other projects and it also seems to be like this in other big Java projects like Spring. The @throws
in the Javadoc will stay, though.