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 d77d066567..dfa146b19e 100644 --- a/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java +++ b/java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java @@ -1455,12 +1455,8 @@ public abstract class GeneratedMessageLite< return (GeneratedExtension) extension; } - /** - * A static helper method for checking if a message is initialized, optionally memoizing. - * - *

For use by generated code only. - */ - protected static final > boolean isInitialized( + /** A static helper method for checking if a message is initialized, optionally memoizing. */ + private static final > boolean isInitialized( T message, boolean shouldMemoize) { byte memoizedIsInitialized = (Byte) message.dynamicMethod(MethodToInvoke.GET_MEMOIZED_IS_INITIALIZED, null, null);