Changed cache value's key to be final.

This commit is contained in:
Harrison Deng 2020-05-17 14:57:09 -05:00
parent 88d3237d4e
commit a032f007c1

View File

@ -4,7 +4,7 @@ class CacheValue<KeyType, ValueType> {
/**
* The key that represents this cache value in the caches hashmap.
*/
public volatile KeyType key;
public final KeyType key;
/**
* The actual value that this cache value stores.