java: Fixed RawType's bug that hash values of same byte arrays (raw data) are different

This commit is contained in:
Muga Nishizawa
2011-04-05 03:30:43 +09:00
parent dfe29a0329
commit 9c4812f4d4

View File

@@ -1,7 +1,7 @@
// //
// MessagePack for Java // MessagePack for Java
// //
// Copyright (C) 2009-2010 FURUHASHI Sadayuki // Copyright (C) 2009-2011 FURUHASHI Sadayuki
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@@ -79,7 +79,7 @@ public class RawType extends MessagePackObject {
@Override @Override
public int hashCode() { public int hashCode() {
return bytes.hashCode(); return Arrays.hashCode(bytes);
} }
@Override @Override