Skip to content

Commit e1c3ed9

Browse files
iemejiaarouel
andauthored
GH-3499: Make cacheHashCode private (review suggestion)
Co-authored-by: André Rouél <andre.rouel@gmail.com>
1 parent a8152c9 commit e1c3ed9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • parquet-column/src/main/java/org/apache/parquet/io/api

parquet-column/src/main/java/org/apache/parquet/io/api/Binary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public boolean equals(Object obj) {
118118
* a single int field with sentinel {@code 0} to remain race-safe without volatile.
119119
* If the computed hash is {@code 0}, no caching occurs and the next call recomputes.
120120
*/
121-
final int cacheHashCode(int hashCode) {
121+
private int cacheHashCode(int hashCode) {
122122
if (!isBackingBytesReused) {
123123
cachedHashCode = hashCode;
124124
}

0 commit comments

Comments
 (0)