diff options
| author | Tobias Thierer <tobiast@google.com> | 2019-08-20 19:10:45 +0100 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2019-08-20 21:34:58 +0100 |
| commit | d333cbda2a2da0e5f20fc43b3f3e6866aa10c2ae (patch) | |
| tree | 702176e92817418eedc7cbd8c9259fdd858da519 /annotations/generate_annotated_java_files.py | |
| parent | 08d0b74670b04bb4687ef66f0efc4745d49b8e5b (diff) | |
Add @CovariantReturnType annotation to @CorePlatformApi.
The annotation tells the build toolchain to generate a synthetic
method overload that returns a different type, which is useful
to evolve an API to change its return type to become a more
specific sub-type. Note that a CTS test is needed to verify that
each expected overload is present at runtime.
Also, note that this CL also adds the nested annotation
@CovariantReturnTypes and its values() function to the
@CorePlatformApi because it is required by @Repeated.
For an existing example, see http://r.android.com/884453 (commit
d708f23a17ac382fde8ddda029430cf88821621f).
Test: Treehugger
Fixes: 139739718
Change-Id: I056074b0c3e741696636182ce70ebbe088aefc9e
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
