-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeUtils#isAssignable()
improvements (#4696)
* Add `TypeUtils` tests for primitives * Correct `TypeUtils#isAssignableTo()` for primitive array types * New `TypeUtils#isAssignableTo()` API We need to consider the "position" when performing the assignability check. I.e. check if a parameterized type compared against a generic type variable is used in a context where the generic type parameter is bound by the parameterized type or not. * Implement new API * Remove one more `stream()` call * Update Javadoc visitors to use `TypeUtils#isAssignableTo()` correctly * Correction * Corrections * Corrections * More Javadoc fixes * Add missing `@MinimumJava11` annotation
- Loading branch information
1 parent
0e52b94
commit 01813e3
Showing
6 changed files
with
607 additions
and
115 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
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.