We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9118c commit aa5936fCopy full SHA for aa5936f
1 file changed
HMCLCore/src/main/java/org/jackhuang/hmcl/util/gson/JsonUtils.java
@@ -90,7 +90,7 @@ private JsonUtils() {
90
/// @param <T> the element type
91
/// @param elementType the runtime [Class] of the list element
92
/// @return a [TypeToken] for `List<T>`
93
- public static <T extends @UnknownNullability Object> TypeToken<List<@Nullable T>> listTypeOf(Class<T> elementType) {
+ public static <T extends @UnknownNullability Object> TypeToken<List<T>> listTypeOf(Class<T> elementType) {
94
return (TypeToken<List<T>>) TypeToken.getParameterized(List.class, elementType);
95
}
96
0 commit comments