Skip to content

Commit dd278ee

Browse files
committed
remove error checking in hash-based accessor
1 parent abe1839 commit dd278ee

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎common-tools/clas-utils/src/main/java/org/jlab/utils/groups/IndexedList.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public T getItem(int... index) {
146146
* @return the item with the hash, null if not found
147147
*/
148148
public T getItemByHash(long hash){
149-
if (!this.collection.containsKey(hash)) return null;
150149
return this.collection.get(hash);
151150
}
152151

0 commit comments

Comments
 (0)