Comment #6 on issue 630 by xiaof...@google.com: Java: initializing bitFields variables
http://code.google.com/p/protobuf/issues/detail?id=630

Re #5:
JVM will only set the value to 0 but an integral protobuf field may have a non-zero default value (set by field option [default = 12345]). When generating the init method it's easier to just generate an assignment statement for every field no matter whether the default value is 0 or not. This is an implementation detail though. We could change it to not initialize integral fields whose default value is 0.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to