File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2302,7 +2302,7 @@ void Generator::GenerateOneofCaseDefinition(
2302
2302
" () {\n "
2303
2303
" return /** @type {$class$.$oneof$Case} */(jspb.Message."
2304
2304
" computeOneofCase(this, $class$.oneofGroups_[$oneofindex$]));\n " ,
2305
- " class" , className ,
2305
+ " class" , oneof-> containing_type ()-> name () ,
2306
2306
" oneof" , JSOneofName (oneof),
2307
2307
" oneofindex" , JSOneofIndex (oneof));
2308
2308
GenerateMethodEnd (options, printer);
@@ -3109,7 +3109,7 @@ const char * methodEndBrace = options.WantEs6() ? "}" : "};";
3109
3109
if (HasFieldPresence (options, field)) {
3110
3110
const std::string haserName = " has" + JSGetterName (options, field);
3111
3111
const std::string haserMethodStart = MethodStart (
3112
- options, classSymbol.c_str (), clearerName .c_str ());
3112
+ options, classSymbol.c_str (), haserName .c_str ());
3113
3113
3114
3114
printer->Print (
3115
3115
" /**\n "
You can’t perform that action at this time.
0 commit comments