Returns the constant pool's hash table item which is equal to the given item. @param key a constant pool item. @return the constant pool's hash table item which is equal to the given item, or null if there is no such item.
(final Item key)
| 905 | */ |
| 906 | |
| 907 | private Item get (final Item key) { |
| 908 | Item tab[] = table; |
| 909 | int hashCode = key.hashCode; |
| 910 | int index = (hashCode & 0x7FFFFFFF) % tab.length; |
| 911 | for (Item i = tab[index]; i != null; i = i.next) { |
| 912 | if (i.hashCode == hashCode && key.isEqualTo(i)) { |
| 913 | return i; |
| 914 | } |
| 915 | } |
| 916 | return null; |
| 917 | } |
| 918 | |
| 919 | /** |
| 920 | * Puts the given item in the constant pool's hash table. The hash table |
no test coverage detected