public < T > void cleanNullReferences ( Class < T > clazz ) { Map < Object , Reference < Object > > objectMap = getMapForClass ( clazz ) ; if ( objectMap != null ) { cleanMap ( objectMap ) ; } }
Run through the map and remove any references that have been null d out by the GC .