Skip to content

Commit 26d0574

Browse files
stefanhausteincopybara-github
authored andcommitted
Conversion output example
PiperOrigin-RevId: 745995036
1 parent a804c3b commit 26d0574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protobuf/compiler/src/google/protobuf/compiler/j2objc/j2objc_message.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void MessageGenerator::GenerateHeader(io::Printer* printer) {
223223
"\n"
224224
"// in j2objc_message.cc \n"
225225
"@interface $classname$ : $superclassname$<$classname$OrBuilder>\n\n"
226-
"+ (id<$classname$_Companion>) companion;\n"
226+
"@property (nonnull, readonly, class) id<$classname$_Companion> companion;\n"
227227
"+ (nonnull $classname$_Builder *)doNewBuilder;\n",
228228
"classname", ClassName(descriptor_), "superclassname", superclassName);
229229
} else {

0 commit comments

Comments
 (0)