summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-09-28 11:26:27 +0200
committerGitHub <noreply@github.com>2023-09-28 11:26:27 +0200
commit791ab8dc2d9c9febb1ef93977fe990d66434c341 (patch)
tree2721dc0e3868b894a6b53ca87c392fabec2e77a1 /config-model
parent9c0ac6de85df32094db49cc534420e0e701d4d07 (diff)
parent9b473612d598f1c99721d2279a9e127a5e9ffd17 (diff)
Merge pull request #28706 from vespa-engine/arnej/fix-ngram-equals
use equals to compare OptionalInt instances MERGEOK
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/document/Matching.java2
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;
}