Skip to content

Commit

Permalink
Make signature of com.google.api.client.util.Data#nullOf more type sa…
Browse files Browse the repository at this point in the history
…fe (#537)
  • Loading branch information
ajaaym authored and chingor13 committed Dec 10, 2018
1 parent fb18555 commit f0ca832
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class Data {
* @return magic object instance that represents the "null" value (not Java {@code null})
* @throws IllegalArgumentException if unable to create a new instance
*/
public static <T> T nullOf(Class<?> objClass) {
public static <T> T nullOf(Class<T> objClass) {
Object result = NULL_CACHE.get(objClass);
if (result == null) {
synchronized (NULL_CACHE) {
Expand Down

0 comments on commit f0ca832

Please sign in to comment.