All Downloads are FREE. Search and download functionalities are using the official Maven repository.

errorprone.bugpattern.javadoc.InvalidThrowsLink.md Maven / Gradle / Ivy

The newest version!
`@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.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy