private WeakValueHashMap<Key, Object> getOrCreateMap() { WeakValueHashMap<Key, Object> userData = myUserData; if (userData == null) { myUserData = userData = new WeakValueHashMap<Key, Object>(); } return userData; }
@Nonnull private Map<Key, Object> getOrCreateMap() { Map<Key, Object> userData = myUserData; if (userData == null) { myUserData = userData = new WeakValueHashMap<>(); } return userData; }