Commit 986c090
authored
fix: Replace deprecated protobuf methods. (#2764)
`isSynthetic()` is deprecated and will be
[removed](protocolbuffers/protobuf@1aeacd4#diff-2228551d02c6661809ca7103db9512eef4c2d01f35556d42316543d92a89edefL2846-L2847)
in protobuf-java 4.26.0, replace it so that we can prepare for
protobuf-java upgrade.
Per [official
doc](https://github.com/protocolbuffers/protobuf/blob/main/docs/implementing_proto3_presence.md)
of protobuf, an optional field is implemented as a "synthetic" oneof
field internally. Also see b/266950618#comment123 for suggested
replacements of `isSynthetic()`.1 parent 4e31d7d commit 986c090
1 file changed
Lines changed: 2 additions & 4 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
| 1066 | + | |
1069 | 1067 | | |
1070 | 1068 | | |
1071 | | - | |
| 1069 | + | |
1072 | 1070 | | |
1073 | 1071 | | |
1074 | 1072 | | |
| |||
0 commit comments