From 5520f665051989f3fe3fb47c5a55864bec48eb36 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Wed, 8 Jan 2025 11:24:44 -0800 Subject: [PATCH] Update src/main/java/org/spdx/storage/simple/InMemSpdxStore.java Co-authored-by: Arthit Suriyawongkul Signed-off-by: Gary O'Neall --- src/main/java/org/spdx/storage/simple/InMemSpdxStore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/spdx/storage/simple/InMemSpdxStore.java b/src/main/java/org/spdx/storage/simple/InMemSpdxStore.java index 293644dc..b8337142 100644 --- a/src/main/java/org/spdx/storage/simple/InMemSpdxStore.java +++ b/src/main/java/org/spdx/storage/simple/InMemSpdxStore.java @@ -414,10 +414,10 @@ public void leaveCriticalSection(IModelStoreLock lock) { } @Override - public Optional getCaseSensitiveId(String nameSpace, String caseInsensisitiveId) { + public Optional getCaseSensitiveId(String nameSpace, String caseInsensitiveId) { Objects.requireNonNull(nameSpace, "Namespace can not be null"); - Objects.requireNonNull(caseInsensisitiveId, "CaseInsensisitiveId can not be null"); - String objectUri = nameSpace + "#" + caseInsensisitiveId; + Objects.requireNonNull(caseInsensitiveId, "CaseInsensitiveId can not be null"); + String objectUri = nameSpace + "#" + caseInsensitiveId; StoredTypedItem item = typedValueMap.get(objectUri.toLowerCase()); if (Objects.isNull(item)) { return Optional.empty();