blob: 06ac7091fca6d019cf7a7ed91adb6b1e404c2d46 [file] [log] [blame] [view]
The `@throws` tag should not document a checked exception which is not actually
thrown by the documented method.
```java
/**
* Validates {@code n}.
*
* @throws Exception if n is negative.
*/
void validate(int n) {
...
}
```
## Suppression
Suppress by applying `@SuppressWarnings("InvalidThrows")` to the element being
documented.