Skip to content

Commit

Permalink
Restore runtime compatibility with 3.22.x gencode by re-adding the mu…
Browse files Browse the repository at this point in the history
…tableCopy(list) methods.

These will be removed in the next major revision of Java protobuf.

PiperOrigin-RevId: 683280521
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Oct 7, 2024
1 parent 9a1aa8c commit 6628b8a
Show file tree
Hide file tree
Showing 76 changed files with 448 additions and 1,375 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
158 changes: 53 additions & 105 deletions php/ext/google/protobuf/wkt.inc

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions php/src/GPBMetadata/Google/Protobuf/Any.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 23 additions & 2 deletions php/src/GPBMetadata/Google/Protobuf/Api.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions php/src/GPBMetadata/Google/Protobuf/Duration.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions php/src/GPBMetadata/Google/Protobuf/FieldMask.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions php/src/GPBMetadata/Google/Protobuf/GPBEmpty.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6628b8a

Please sign in to comment.