Commit 9ceb3d4a authored by Max Cai's avatar Max Cai

Fix how getRepeatedFieldArrayLength works

Change-Id: I01921eff008a8e3f7b1fbeb653d15ff8038d3220
parent 70ef74aa
......@@ -113,11 +113,7 @@ public final class WireFormatNano {
int arrayLength = 1;
int startPos = input.getPosition();
input.skipField(tag);
while (input.getBytesUntilLimit() > 0) {
int thisTag = input.readTag();
if (thisTag != tag) {
break;
}
while (input.readTag() == tag) {
input.skipField(tag);
arrayLength++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment