pb
This commit is contained in:
@@ -92,15 +92,16 @@ public class ProtobufBytesWriter extends ProtobufWriter { // 存在child情况
|
|||||||
this.child = result;
|
this.child = result;
|
||||||
delegate = result;
|
delegate = result;
|
||||||
} else {
|
} else {
|
||||||
if (delegate.child != null) {
|
|
||||||
while (delegate.child != null) {
|
|
||||||
delegate = delegate.child;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
result.parent = delegate;
|
result.parent = delegate;
|
||||||
delegate.child = result;
|
delegate.child = result;
|
||||||
delegate = result;
|
delegate = result;
|
||||||
}
|
}
|
||||||
|
if (this.parent != null) {
|
||||||
|
ProtobufWriter p = this;
|
||||||
|
while ((p = p.parent) instanceof ProtobufBytesWriter) {
|
||||||
|
((ProtobufBytesWriter) p).delegate = result;
|
||||||
|
}
|
||||||
|
}
|
||||||
result.configFieldFunc(result.parent);
|
result.configFieldFunc(result.parent);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user