From 0070ac118863d7bfd12fa3eeab09e78178e41c65 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 27 Feb 2024 09:59:56 -0800 Subject: [PATCH] Make UnsafeByteOperations stable; removing experimental annotation. PiperOrigin-RevId: 610787227 --- .../main/java/com/google/protobuf/UnsafeByteOperations.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/core/src/main/java/com/google/protobuf/UnsafeByteOperations.java b/java/core/src/main/java/com/google/protobuf/UnsafeByteOperations.java index 06121780f5..15c1da9690 100644 --- a/java/core/src/main/java/com/google/protobuf/UnsafeByteOperations.java +++ b/java/core/src/main/java/com/google/protobuf/UnsafeByteOperations.java @@ -12,8 +12,8 @@ import java.nio.ByteBuffer; /** * Provides a number of unsafe byte operations to be used by advanced applications with high - * performance requirements. These methods are referred to as "unsafe" because they - * potentially expose the backing buffer of a {@link ByteString} to the application. + * performance requirements. These methods are referred to as "unsafe" because they potentially + * expose the backing buffer of a {@link ByteString} to the application. * *

DISCLAIMER: The methods in this class should only be called if it is * guaranteed that the buffer backing the {@link ByteString} will never change! Mutation of a {@link @@ -38,7 +38,6 @@ import java.nio.ByteBuffer; * parts of the code base modifying the buffer. In fact, both parts of the code base may be correct * - it is the bridging with the unsafe operations that was in error! */ -@ExperimentalApi public final class UnsafeByteOperations { private UnsafeByteOperations() {}