JetBrains provides some annotations that we can use in this project for catching things like NullPointerException, and for specifying contracts in our functions. These wouldn't serve any use at runtime, but they could prove useful in the IDE. The source code for these annotations is available on Maven central repository.
If we import annotations, then we have one more dependency in our project, and put a useless (at runtime) artifact into the compiled jar, but it will catch a few exceptions that we miss.
If we don't do it, we miss out on these annotations.
JetBrains provides some annotations that we can use in this project for catching things like
NullPointerException, and for specifying contracts in our functions. These wouldn't serve any use at runtime, but they could prove useful in the IDE. The source code for these annotations is available on Maven central repository.If we import annotations, then we have one more dependency in our project, and put a useless (at runtime) artifact into the compiled jar, but it will catch a few exceptions that we miss.
If we don't do it, we miss out on these annotations.