Skip to content

Commit

Permalink
util-hashing: Remove deprecation from KeyHasher
Browse files Browse the repository at this point in the history
Motivation

`c.t.hashing.KeyHasher` was marked deprecated but it has remained
heavily in use. The API is rather small and harmless and the benefits
of migration are nebulous.

Solution

Remove the deprecation annotation.

RB_ID=800225
  • Loading branch information
kevinoliver authored and jenkins committed Feb 22, 2016
1 parent 204e8d9 commit 0fadf3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package com.twitter.hashing

/**
* Hashes a key into a 32-bit or 64-bit number (depending on the algorithm).
*
* @see the companion object for common implementations.
*/
@deprecated("Prefer Hashable[Array[Byte],Long]", "6.12.1")
trait KeyHasher {
def hashKey(key: Array[Byte]): Long
}
Expand Down

0 comments on commit 0fadf3a

Please sign in to comment.