Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18912

Specify "since" in all Deprecated annotations

    XMLWordPrintableJSON

Details

    Description

      It would be great if we introduced in 5.0 a change in Deprecated annotations like this:

      @Deprecated(since = "4.0")
      

      or

      @Deprecated(since = "3.11")
      

      The reasoning behind this is that as of now, it is pretty cumbersome to figure out what can be removed on the next major version. It has to be, basically, done manually every time.

      There is also this parameter available:

      @Deprecated(forRemoval = true / false)
      

      which indicates whether the annotated element is subject to removal in a future version so we do not need to think about this every time if it is eligible for deletion in a next major or not.

      We could then have a check which would ensure that we are not releasing a next major with some deprecations introduced two majors before.

      Attachments

        1. signature.asc
          0.5 kB
          miklosovic
        2. signature.asc
          0.5 kB
          miklosovic
        3. signature.asc
          0.5 kB
          miklosovic

        Activity

          People

            mmuzaf Maxim Muzafarov
            smiklosovic Stefan Miklosovic
            Maxim Muzafarov, Stefan Miklosovic
            Brandon Williams, Maxim Muzafarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m