We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb54934 commit 53bb5c8Copy full SHA for 53bb5c8
core/src/main/java/com/datastax/oss/driver/internal/core/type/codec/registry/DefaultCodecRegistry.java
@@ -159,7 +159,10 @@ public boolean equals(Object other) {
159
160
@Override
161
public int hashCode() {
162
- return Objects.hash(cqlType, javaType, isJavaCovariant);
+ // NOTE: inlined Objects.hash for performance reasons (avoid Object[] allocation
163
+ // seen in profiler allocation traces)
164
+ return ((31 + Objects.hashCode(cqlType)) * 31 + Objects.hashCode(javaType)) * 31
165
+ + Boolean.hashCode(isJavaCovariant);
166
}
167
168
0 commit comments