Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1291

Provide annotations to document thread safety

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • lang.concurrent.*
    • None

    Description

      Since already have a package called org.apache.commons.lang3.concurrent, I propose we place these annottaions in org.apache.commons.lang3.concurrent.annotation.

      The annotations are:

      • org.apache.commons.lang3.concurrent.annotation.GuardedBy
      • org.apache.commons.lang3.concurrent.annotation.Immutable
      • org.apache.commons.lang3.concurrent.annotation.NotThreadSafe
      • org.apache.commons.lang3.concurrent.annotation.ThreadSafe

      The inspiration for these annotations are:

      The JCIP code is released under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.5)

      The NOTICE file will be updated to reflect this.

      Annotation retention will be at the CLASS level which does NOT create a runtime dependency on Commons Lang.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: