createMapField<K, V> method Null safety

Map<K, V> createMapField<K, V>(
  1. int tagNumber,
  2. MapFieldInfo<K, V> fi
)

Creates a Map representing a map field.

Implementation

Map<K, V> createMapField<K, V>(int tagNumber, MapFieldInfo<K, V> fi) {
  return PbMap<K, V>(fi.keyFieldType, fi.valueFieldType);
}