mirror of
https://github.com/google/nomulus.git
synced 2025-08-04 00:42:12 +02:00
This is useful when we expect a specific subtype in the return value so that we can set the parent resource (e. g. DomainContent for DomainHistory) on it, or when a specific subtype is needed from the call site. This PR also fixes some use of generic return values. It is always better to return <HistoryEntry> than a wildcard <? extends HistoryEntry>, because for immutable collections, <? extends HistoryEntry> is no different than <HistoryEntry> as return value -- you can only get a HistoryEntry from it. The wildcard return value means that even if you are indeed getting a <DomainHistory> from the query, the call site has no compile time knowledge of it and can only assume it is a <HistoryEntry>. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1172) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
WEB-INF/appengine-generated | ||
build.gradle | ||
Dockerfile |