Use the same behavior in all situations when an InstanceCreator returns a subclass.

Previously we would set the field if the created instance is being assigned to a field of another object. We wouldn't set it when the created instance is a collection element or the top-level object.
3 files changed
tree: ecd30ba069eb5ac93ac94ee806acc7eb98def89c
  1. examples/
  2. extras/
  3. gson/
  4. lib/
  5. metrics/
  6. proto/