-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b09
-
Verified
As found by errorprone, the lazy init code here:
public int hashCode() {
if (hashValue == -1) {
Arrays.hashCode(encoded);
}
return hashValue;
}
has no effect because the result of Arrays.hashCode is not assigned back to hashValue.
public int hashCode() {
if (hashValue == -1) {
Arrays.hashCode(encoded);
}
return hashValue;
}
has no effect because the result of Arrays.hashCode is not assigned back to hashValue.