Skip to content

Commit

Permalink
cherrypick restoration of mutableCopy helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-github-bot authored and googleberg committed Oct 11, 2024
1 parent fe3bb07 commit 3ea568a
Showing 1 changed file with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
import com.google.protobuf.Descriptors.Descriptor;
import com.google.protobuf.Descriptors.FieldDescriptor;
import com.google.protobuf.Descriptors.OneofDescriptor;
import com.google.protobuf.Internal.BooleanList;
import com.google.protobuf.Internal.DoubleList;
import com.google.protobuf.Internal.FloatList;
import com.google.protobuf.Internal.IntList;
import com.google.protobuf.Internal.LongList;
import java.util.List;

/**
Expand All @@ -36,6 +41,46 @@ protected GeneratedMessageV3(Builder<?> builder) {
super(builder);
}

/* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
* (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead.
*/
@Deprecated
protected static IntList mutableCopy(IntList list) {
return makeMutableCopy(list);
}

/* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
* (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead.
*/
@Deprecated
protected static LongList mutableCopy(LongList list) {
return makeMutableCopy(list);
}

/* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
* (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead.
*/
@Deprecated
protected static FloatList mutableCopy(FloatList list) {
return makeMutableCopy(list);
}

/* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
* (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead.
*/
@Deprecated
protected static DoubleList mutableCopy(DoubleList list) {
return makeMutableCopy(list);
}

/* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
* (5.x). Users should update gencode to >= 4.26.x which uses makeMutableCopy() instead.
*/
@Deprecated
protected static BooleanList mutableCopy(BooleanList list) {
return makeMutableCopy(list);
}

/* Overrides abstract GeneratedMessage.internalGetFieldAccessorTable().
*
* @deprecated This method is deprecated, and slated for removal in the next Java breaking change
Expand Down

0 comments on commit 3ea568a

Please sign in to comment.