diff options
author | Wink Saville <wink@google.com> | 2014-03-21 18:05:10 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2014-03-21 18:05:10 -0700 |
commit | b7dd7d929443b774afe8d15d32a05c33bc8ad889 (patch) | |
tree | af51cf533d0eb2be7f0727982d2d48b88aa0b8bd /java/README.txt | |
parent | ddc98d6dd0800d180454b40ac9cc80f61cc53c21 (diff) | |
download | protobuf-b7dd7d929443b774afe8d15d32a05c33bc8ad889.tar.gz protobuf-b7dd7d929443b774afe8d15d32a05c33bc8ad889.tar.bz2 protobuf-b7dd7d929443b774afe8d15d32a05c33bc8ad889.zip |
Revert "Don't reset cachedSize to 0 in getSerializedSize"
This reverts commit c6e12c6702ca764486f952654ba1568f00efe813.
Diffstat (limited to 'java/README.txt')
-rw-r--r-- | java/README.txt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/java/README.txt b/java/README.txt index f958d147..13865f6d 100644 --- a/java/README.txt +++ b/java/README.txt @@ -437,15 +437,6 @@ and the runtime overhead. An overview of Nano features: MessageNano. - The 'bytes' type translates to the Java type byte[]. -The generated messages are not thread-safe for writes, but may be -used simultaneously from multiple threads in a read-only manner. -In other words, an appropriate synchronization mechanism (such as -a ReadWriteLock) must be used to ensure that a message, its -ancestors, and descendants are not accessed by any other threads -while the message is being modified. Field reads, getter methods, -toByteArray(...), writeTo(...), getCachedSize(), and -getSerializedSize() are all considered read-only operations. - IMPORTANT: If you have fields with defaults and opt out of accessors How fields with defaults are serialized has changed. Because we don't |