diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-09-28 08:53:06 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-09-28 08:53:06 +0000 |
commit | 9b473612d598f1c99721d2279a9e127a5e9ffd17 (patch) | |
tree | 5e4b053b75350d2b65834ea215ae7f6d8cd376d8 /config-model | |
parent | d706455e3b682b6a713d94e22a7a9b622946d45f (diff) |
use equals to compare OptionalInt instances
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/document/Matching.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/document/Matching.java b/config-model/src/main/java/com/yahoo/schema/document/Matching.java index 264fd0ff3b9..e3f49cb834d 100644 --- a/config-model/src/main/java/com/yahoo/schema/document/Matching.java +++ b/config-model/src/main/java/com/yahoo/schema/document/Matching.java @@ -133,7 +133,7 @@ public class Matching implements Cloneable, Serializable { if ( this.exactMatchTerminator == null && other.exactMatchTerminator != null) return false; if ( this.exactMatchTerminator != null && ( ! this.exactMatchTerminator.equals(other.exactMatchTerminator)) ) return false; - if ( gramSize != other.gramSize) return false; + if ( ! gramSize.equals(other.gramSize)) return false; return true; } |