|
|
@ -612,7 +612,8 @@ void ImmutableMapFieldGenerator::GenerateMapGetters( |
|
|
|
printer->Print( |
|
|
|
printer->Print( |
|
|
|
variables_, |
|
|
|
variables_, |
|
|
|
"@java.lang.Override\n" |
|
|
|
"@java.lang.Override\n" |
|
|
|
"$deprecation$public $value_enum_type$ get$capitalized_name$OrThrow(\n" |
|
|
|
"$deprecation$public $value_enum_type$ " |
|
|
|
|
|
|
|
"${$get$capitalized_name$OrThrow$}$(\n" |
|
|
|
" $key_type$ key) {\n" |
|
|
|
" $key_type$ key) {\n" |
|
|
|
" $key_null_check$\n" |
|
|
|
" $key_null_check$\n" |
|
|
|
" java.util.Map<$boxed_key_type$, $boxed_value_type$> map =\n" |
|
|
|
" java.util.Map<$boxed_key_type$, $boxed_value_type$> map =\n" |
|
|
@ -866,7 +867,7 @@ void ImmutableMapFieldGenerator::GenerateMessageMapBuilderMembers( |
|
|
|
printer->Print( |
|
|
|
printer->Print( |
|
|
|
variables_, |
|
|
|
variables_, |
|
|
|
"$deprecation$public $value_builder_type$ " |
|
|
|
"$deprecation$public $value_builder_type$ " |
|
|
|
"put$capitalized_name$BuilderIfAbsent(\n" |
|
|
|
"${$put$capitalized_name$BuilderIfAbsent$}$(\n" |
|
|
|
" $key_type$ key) {\n" |
|
|
|
" $key_type$ key) {\n" |
|
|
|
" java.util.Map<$boxed_key_type$, $value_interface_type$> builderMap = " |
|
|
|
" java.util.Map<$boxed_key_type$, $value_interface_type$> builderMap = " |
|
|
|
"internalGetMutable$capitalized_name$().ensureBuilderMap();\n" |
|
|
|
"internalGetMutable$capitalized_name$().ensureBuilderMap();\n" |
|
|
|