blob: 5c9c323b4cf7b62159430fe999eb22f08f457a1a [file] [view] [edit]
`@throws` does not require `@link`ing the target exception.
```java
/**
* Validates {@code n}.
*
* @throws {@link Exception} if n is negative.
*/
void validate(int n) throws Exception {
...
}
```
```java
/**
* Validates {@code n}.
*
* @throws Exception if n is negative.
*/
void validate(int n) throws Exception {
...
}
```
## Suppression
Suppress by applying `@SuppressWarnings("InvalidThrowsLink")` to the element
being documented.