From becdc16d2b52a67c6f3b8eca965e1c91bc0d344a Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Mon, 22 Jun 2026 16:43:52 -0400 Subject: [PATCH] remove error checking in hash-based accessor --- .../src/main/java/org/jlab/utils/groups/IndexedList.java | 1 - 1 file changed, 1 deletion(-) diff --git a/common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java b/common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java index 6dce281502..21b9aca355 100644 --- a/common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java +++ b/common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java @@ -146,7 +146,6 @@ public T getItem(int... index) { * @return the item with the hash, null if not found */ public T getItemByHash(long hash){ - if (!this.collection.containsKey(hash)) return null; return this.collection.get(hash); }