-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: None
-
Component/s: security-libs
-
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.