File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
java/core/src/test/java/com/google/protobuf Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public void testImportOption() throws Exception {
2626 UnknownFieldSet unknownFieldsMessage = messageDescriptor .getOptions ().getUnknownFields ();
2727 UnknownFieldSet unknownFieldsField = fieldDescriptor .getOptions ().getUnknownFields ();
2828
29+ // Using the extension ensures UnittestCustomOptions is linked in and referenced
2930 assertThat (fileDescriptor .getOptions ().getExtension (UnittestCustomOptions .fileOpt1 ))
3031 .isEqualTo (1 );
3132 assertThat (messageDescriptor .getOptions ().getExtension (UnittestCustomOptions .messageOpt1 ))
@@ -34,7 +35,7 @@ public void testImportOption() throws Exception {
3435 .isEqualTo (3 );
3536
3637 // TODO: Since `option_deps` are treated as `deps` in Bazel 7, the unknown
37- // fields are not empty. Once we drop Bazel 7 support we can test that these are filled with
38+ // fields will be empty. Once we drop Bazel 7 support we can test that these are filled with
3839 // unknown fields.
3940 assertThat (unknownFieldsFile .asMap ().size ()).isAtMost (1 );
4041 assertThat (unknownFieldsMessage .asMap ().size ()).isAtMost (1 );
You can’t perform that action at this time.
0 commit comments