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

Fix misplaced deprecation in Delete#addXYZ

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0
    • Fix Version/s: 1.0.1, 1.1.0, 2.0.0
    • Component/s: API
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Found by Lars George

      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

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

              Dates

              • Created:
                Updated:
                Resolved: