-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): use covariant types for collection elements (#1884)
Using covariant expressions instead of just the type name enables a better experience when using libraries such as Guava to build up collections (`List` or `Map`) to use with the libraries. In particular, collections of `any` are particularly annoying to use without covariant typing because they'd force the user to manually specify generic parameters in their code that add nothing to the safety of the program. Fixes #1517
- Loading branch information
1 parent
96259b7
commit be2c7e2
Showing
4 changed files
with
141 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.