-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ByteArrayWrapper safe for use as key in Map
The underlying byte[] is mutable and could accidentally be changed after instantiation of the wrapper object. To ensure that the hashCode or the (natural or fast) order of the object does not change, the data must be copied defensively.
- Loading branch information
Showing
1 changed file
with
18 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters