Change access of GeneratedMessageLite.MethodToInvoke to 'protected'

This should only be used by subclasses, and making it protected makes that more
enforced by the compiler.

PiperOrigin-RevId: 686257899
pull/18785/head
Mark Hansen 5 months ago committed by Copybara-Service
parent 4997f3d070
commit 2b0a414573
  1. 2
      java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java

@ -236,7 +236,7 @@ public abstract class GeneratedMessageLite<
*
* <p>For use by generated code only.
*/
public static enum MethodToInvoke {
protected static enum MethodToInvoke {
// Rely on/modify instance state
GET_MEMOIZED_IS_INITIALIZED,
SET_MEMOIZED_IS_INITIALIZED,

Loading…
Cancel
Save