Skip to content

Commit f0ca832

Browse files
ajaaymchingor13
authored andcommitted
Make signature of com.google.api.client.util.Data#nullOf more type safe (#537)
1 parent fb18555 commit f0ca832

File tree

1 file changed

+1
-1
lines changed
  • google-http-client/src/main/java/com/google/api/client/util

1 file changed

+1
-1
lines changed

google-http-client/src/main/java/com/google/api/client/util/Data.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public class Data {
107107
* @return magic object instance that represents the "null" value (not Java {@code null})
108108
* @throws IllegalArgumentException if unable to create a new instance
109109
*/
110-
public static <T> T nullOf(Class<?> objClass) {
110+
public static <T> T nullOf(Class<T> objClass) {
111111
Object result = NULL_CACHE.get(objClass);
112112
if (result == null) {
113113
synchronized (NULL_CACHE) {

0 commit comments

Comments
 (0)