From 220f4e5ff2542d9446a120d2d425b186a343043b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20M=C3=BCller?= Date: Wed, 14 Sep 2022 13:13:22 +0200 Subject: [PATCH] remove exception when comparing terms from 2 different vocabularies --- .../main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java index 9c96021927..372065ed3e 100644 --- a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java +++ b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java @@ -134,9 +134,6 @@ public abstract class OrderedTermBase> if (this.vocabulary == null || thatTermLocal.vocabulary == null){ throw new IllegalStateException("An ordered term (" + this.toString() + " or " + thatTermLocal.toString() + ") of class " + this.getClass() + " or " + thatTermLocal.getClass() + " does not belong to a vocabulary and therefore can not be compared"); } - if (! this.getVocabulary().getUuid().equals(thatTermLocal.vocabulary.getUuid())){ - throw new IllegalStateException("2 terms do not belong to the same vocabulary and therefore can not be compared: " + this.getTitleCache() + " and " + thatTermLocal.getTitleCache()); - } } int vocCompare = compareVocabularies(thatTermLocal); -- 2.34.1