Skip to content

Commit aa5936f

Browse files
committed
refactor: simplify listTypeOf method by removing unnecessary nullable type annotation
1 parent 9f9118c commit aa5936f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCLCore/src/main/java/org/jackhuang/hmcl/util/gson/JsonUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private JsonUtils() {
9090
/// @param <T> the element type
9191
/// @param elementType the runtime [Class] of the list element
9292
/// @return a [TypeToken] for `List<T>`
93-
public static <T extends @UnknownNullability Object> TypeToken<List<@Nullable T>> listTypeOf(Class<T> elementType) {
93+
public static <T extends @UnknownNullability Object> TypeToken<List<T>> listTypeOf(Class<T> elementType) {
9494
return (TypeToken<List<T>>) TypeToken.getParameterized(List.class, elementType);
9595
}
9696

0 commit comments

Comments
 (0)