diff -up protobuf-23.3/java/core/src/test/java/com/google/protobuf/DescriptorsTest.java.UnittestRetention protobuf-23.3/java/core/src/test/java/com/google/protobuf/DescriptorsTest.java
--- protobuf-23.3/java/core/src/test/java/com/google/protobuf/DescriptorsTest.java.UnittestRetention 2023-06-15 22:14:42.754927813 -0600
+++ protobuf-23.3/java/core/src/test/java/com/google/protobuf/DescriptorsTest.java 2023-06-16 07:35:45.400850777 -0600
@@ -65,7 +65,6 @@ import protobuf_unittest.UnittestProto.T
import protobuf_unittest.UnittestProto.TestReservedEnumFields;
import protobuf_unittest.UnittestProto.TestReservedFields;
import protobuf_unittest.UnittestProto.TestService;
-import protobuf_unittest.UnittestRetention;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
@@ -565,16 +564,6 @@ public class DescriptorsTest {
.isEqualTo(UnittestCustomOptions.MethodOpt1.METHODOPT1_VAL2);
}
- @Test
- public void testOptionRetention() throws Exception {
- // Verify that options with RETENTION_SOURCE are stripped from the
- // generated descriptors.
- FileOptions options = UnittestRetention.getDescriptor().getOptions();
- assertThat(options.hasExtension(UnittestRetention.plainOption)).isTrue();
- assertThat(options.hasExtension(UnittestRetention.runtimeRetentionOption)).isTrue();
- assertThat(options.hasExtension(UnittestRetention.sourceRetentionOption)).isFalse();
- }
-
/** Test that the FieldDescriptor.Type enum is the same as the WireFormat.FieldType enum. */
@Test
public void testFieldTypeTablesMatch() throws Exception {