Skip to content

Commit b841254

Browse files
stainless-botStainless Bot
authored andcommitted
fix(client): implement hashCode for IsMissing
chore: unknown commit message
1 parent aef3473 commit b841254

File tree

1 file changed

+2
-0
lines changed
  • openai-java-core/src/main/kotlin/com/openai/core

1 file changed

+2
-0
lines changed

openai-java-core/src/main/kotlin/com/openai/core/Values.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ sealed class JsonField<out T : Any> {
142142
// This filter should not be used directly and should instead use the @ExcludeMissing annotation
143143
class IsMissing {
144144
override fun equals(other: Any?): Boolean = other is JsonMissing
145+
146+
override fun hashCode(): Int = Objects.hash()
145147
}
146148

147149
class Deserializer(private val type: JavaType? = null) :

0 commit comments

Comments
 (0)