mirror of
https://github.com/google/nomulus
synced 2026-03-27 12:55:28 +00:00
1) Prefer .getConstructor().newInstance() over .newInstance() because otherwise checked exceptions can be propagated from the constructor even though they aren't declared. 2) Use the type T in the parameters to instantiate(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138874730