Skip to content

Commit

Permalink
Make GeneratedMessageLite.isInitialized(T message, boolean shouldMemo…
Browse files Browse the repository at this point in the history
…ize) private

It's not used by generated code, contrary to the comment.

The 2-arg version of the method was used in gencode for one day (2025-04-08 through 09): cl/90574926 to cl/90648831.

PiperOrigin-RevId: 688268752
  • Loading branch information
mhansen authored and copybara-github committed Oct 21, 2024
1 parent 6935e10 commit 84a4472
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1455,12 +1455,8 @@ GeneratedExtension<MessageType, T> checkIsLite(ExtensionLite<MessageType, T> ext
return (GeneratedExtension<MessageType, T>) extension;
}

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

0 comments on commit 84a4472

Please sign in to comment.