Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Make MurmurHash of Strings independent of default encoding #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bfaria
Copy link

@bfaria bfaria commented Oct 14, 2014

When hashing Strings MurmurHash simply uses the getBytes() method, which
will use the default platform encoding. This is not portable.

I've changed all calls to getBytes(Charset) and fixed the encoding to UTF8.

When hashing Strings MurmurHash simply uses the getBytes method, which
will use the default platform encoding. This is not portable.
@bfaria
Copy link
Author

bfaria commented Oct 14, 2014

I didn't notice guava was just a test scope dependency. I will remove the use of Charsets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant