readGroup method Null safety

void readGroup(
  1. int fieldNumber,
  2. GeneratedMessage message,
  3. ExtensionRegistry extensionRegistry
)

Implementation

void readGroup(int fieldNumber, GeneratedMessage message,
    ExtensionRegistry extensionRegistry) {
  if (_recursionDepth >= _recursionLimit) {
    throw InvalidProtocolBufferException.recursionLimitExceeded();
  }
  ++_recursionDepth;
  message.mergeFromCodedBufferReader(this, extensionRegistry);
  checkLastTagWas(makeTag(fieldNumber, WIRETYPE_END_GROUP));
  --_recursionDepth;
}