Details
-
Task
-
Status: Resolved
-
Trivial
-
Resolution: Won't Fix
-
3.0
-
None
-
None
Description
In discussions that led to this thread, it was concluded that by having the "throws" clause of all methods to contain all exceptions possibly thrown (i.e. also the unchecked ones), it would be possible to ensure that the documentation is complete.
This could be done by temporarily switching the base class "MathRuntimeException" (see MATH-853) to become a checked exception and generating the CheckStyle report which will detect the mismatch between the Javadoc and the "throws" clause. (Thanks to Luc for this trick.)