This commit is contained in:
redkale
2024-10-20 01:49:10 +08:00
parent c2a923619e
commit 59b9c695ec

View File

@@ -92,15 +92,16 @@ public class ProtobufBytesWriter extends ProtobufWriter { // 存在child情况
this.child = result;
delegate = result;
} else {
if (delegate.child != null) {
while (delegate.child != null) {
delegate = delegate.child;
}
}
result.parent = delegate;
delegate.child = result;
delegate = result;
}
if (this.parent != null) {
ProtobufWriter p = this;
while ((p = p.parent) instanceof ProtobufBytesWriter) {
((ProtobufBytesWriter) p).delegate = result;
}
}
result.configFieldFunc(result.parent);
return result;
}