diff --git a/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java b/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java index b2045c11c9..34b2e9b18c 100644 --- a/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java +++ b/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java @@ -360,8 +360,8 @@ public abstract class GeneratedMessageLite< return dynamicMethod(MethodToInvoke.BUILD_MESSAGE_INFO); } - private static Map> defaultInstanceMap = - new ConcurrentHashMap>(); + private static Map, GeneratedMessageLite> defaultInstanceMap = + new ConcurrentHashMap<>(); @SuppressWarnings("unchecked") static > T getDefaultInstance(Class clazz) {