Skip to content

Commit 14ddb30

Browse files
committed
Fix LegacyProtoTypeAdapterFactoryTest bitfield regex pattern.
This will allow the test to pass even after some upcoming changes to the internal representation of Java protos.
1 parent 8b8628c commit 14ddb30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

proto/src/test/java/com/google/gson/protobuf/functional/LegacyProtoTypeAdapterFactoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private static void rewriteJsonObject(JsonObject json) {
199199
Pattern pattern =
200200
Pattern.compile(
201201
"^(memoized.?(Hash.?Code|Is.?Initialized|Size))|unknown.?Fields"
202+
+ "|bit.?[fF]ield.*"
202203
+ "|.*Memoized.?Serialized.?Size$",
203204
Pattern.CASE_INSENSITIVE);
204205
var keysToRemove =

0 commit comments

Comments
 (0)