Use HashMap instead of WeakHashMap.

Otherwise, the entries in the map could be concurrently deleted,
and the test for passing invalid indices actually pass.

bug:62527942
Test: OldAttributeStringTest
Change-Id: I73b8d7c3a547585060667038d85b4b28fefef2bf
1 file changed