Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13274

Fix misplaced deprecation in Delete#addXYZ

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0
    • 1.0.1, 1.1.0, 2.0.0
    • API
    • None
    • Reviewed

    Description

      Found by larsgeorge

      All deleteXYZ() were deprecated in Delete in favour of the matching addXYZ() (to mirror Put, Get, etc.) - _but_ for deleteFamilyVersion(). What is worse is, the @deprecated for it was added to the addFamilyVersion() replacement! Oh man.
      * @deprecated Since hbase-1.0.0. Use {@link #addFamilyVersion(byte[], long)}
  */
  @Deprecated
  public Delete addFamilyVersion(final byte [] family, final long timestamp) {
      The deprecated message is right, but on the wrong method
      (areyoukiddingme)
      Well, I presume it was done right, and will steer clear of deleteXYZ() in favor of addXYZ()
      

      Attachments

        1. HBASE-13274.patch
          1 kB
          Mikhail Antonov

        Activity

          People

            mantonov Mikhail Antonov
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: