diff --git a/java/core/src/main/java/com/google/protobuf/ExtensionRegistry.java b/java/core/src/main/java/com/google/protobuf/ExtensionRegistry.java index 39babd371383..d59d5041a7e5 100644 --- a/java/core/src/main/java/com/google/protobuf/ExtensionRegistry.java +++ b/java/core/src/main/java/com/google/protobuf/ExtensionRegistry.java @@ -126,6 +126,7 @@ public ExtensionInfo findImmutableExtensionByName(final String fullName) { * * @return Information about the extension if found, or {@code null} otherwise. */ + @Deprecated public ExtensionInfo findMutableExtensionByName(final String fullName) { return mutableExtensionsByName.get(fullName); } @@ -152,6 +153,7 @@ public ExtensionInfo findImmutableExtensionByNumber( * * @return Information about the extension if found, or {@code null} otherwise. */ + @Deprecated public ExtensionInfo findMutableExtensionByNumber( final Descriptor containingType, final int fieldNumber) { return mutableExtensionsByNumber.get(new DescriptorIntPair(containingType, fieldNumber)); @@ -163,6 +165,7 @@ public ExtensionInfo findMutableExtensionByNumber( * * @return Information about the extensions found, or {@code null} if there are none. */ + @Deprecated public Set getAllMutableExtensionsByExtendedType(final String fullName) { HashSet extensions = new HashSet(); for (DescriptorIntPair pair : mutableExtensionsByNumber.keySet()) {