@GuardedBy , @ThreadSafe ,@NotThreadSafe

These are custom annotations that are not part of the standard JDK. To be able to use them in your code, you need to add a dependency.

At jcip.net, there is a link to the library and its source in the bottom part of the page “Concurrency annotations: jar, javadoc, source“.

Direct links:

  • jar
  • javadoc
  • source

Leave a Comment