Remove deprecation warning for synchronized collection.