aboutsummaryrefslogtreecommitdiffstats
path: root/java/README.txt
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-03-21 18:05:10 -0700
committerWink Saville <wink@google.com>2014-03-21 18:05:10 -0700
commit2d849337400b64ee913ece4631d3b2dbc95f20d8 (patch)
tree629735fb54faae65062c4738769930b2685f8f09 /java/README.txt
parentec0b12c34a6329d2f98003e9102fe2d75726c797 (diff)
downloadexternal_protobuf-2d849337400b64ee913ece4631d3b2dbc95f20d8.zip
external_protobuf-2d849337400b64ee913ece4631d3b2dbc95f20d8.tar.gz
external_protobuf-2d849337400b64ee913ece4631d3b2dbc95f20d8.tar.bz2
Revert "Don't reset cachedSize to 0 in getSerializedSize"
This reverts commit c6e12c6702ca764486f952654ba1568f00efe813.
Diffstat (limited to 'java/README.txt')
-rw-r--r--java/README.txt9
1 files changed, 0 insertions, 9 deletions
diff --git a/java/README.txt b/java/README.txt
index f958d14..13865f6 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