mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Fix ParameterizedTypeReference nullness
This commit ensures that `ParameterizedTypeReference<T>` can accept nullable types. This is especially useful for Kotlin extension functions and assertion contracts. Fixes gh-36477
This commit is contained in:
@@ -42,7 +42,7 @@ import org.springframework.util.Assert;
|
||||
* @param <T> the referenced type
|
||||
* @see <a href="https://gafter.blogspot.nl/2006/12/super-type-tokens.html">Neal Gafter on Super Type Tokens</a>
|
||||
*/
|
||||
public abstract class ParameterizedTypeReference<T> {
|
||||
public abstract class ParameterizedTypeReference<T extends @Nullable Object> {
|
||||
|
||||
private final Type type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user