I am sick of the following pattern:
value = map.get(key); if (value == null) { value = new Object(); map.put(key, value); }
This ex
Maybe I'm not seeing the whole problem, but how about using inheritance or composition to add this behavior to the Map object?