@GuardedBy , @ThreadSafe ,@NotThreadSafe

前端 未结 1 1736
名媛妹妹
名媛妹妹 2020-12-08 06:43

I see that the above annotations are used extensively in the book JCIP . I think it is really useful because even in the absence of proper documentation it says some things

相关标签:
1条回答
  • 2020-12-08 07:23

    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
    0 讨论(0)
提交回复
热议问题