diff options
author | liamfallon <liam.fallon@est.tech> | 2020-03-20 12:50:35 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2020-03-20 12:50:38 +0000 |
commit | 99bfdc2584c408970d9d9cdc0e8ab869dc126edb (patch) | |
tree | 82d06fc27c428539cc407aa9c8f6b9a1c022a604 /models-base/src/main/java/org | |
parent | dba4f913f6e130fa14db3b3465e922310d683cd5 (diff) |
Test cascaded multiple revision gets
This patch tests cascaded get requests with multiple revisions.
Issue-ID: POLICY-2377
Change-Id: Ie7dc849d7b930b861d38c386a9950ae7e84e2a05
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'models-base/src/main/java/org')
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java b/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java index d259fa260..b94900430 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java @@ -322,7 +322,7 @@ public class PfConceptContainer<C extends PfConcept, A extends PfNameVersion> ex * @return conceptKeyVersion */ public Set<C> getAllNamesAndVersions(final String conceptKeyName, final String conceptKeyVersion) { - if (conceptKeyName == null || conceptKeyVersion == null) { + if (conceptKeyName == null || conceptKeyVersion == null || PfKey.NULL_KEY_VERSION.equals(conceptKeyVersion)) { return getAll(conceptKeyName, conceptKeyVersion); } else { final Set<C> returnSet = new TreeSet<>(); |