diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-09-17 23:20:04 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-09-17 23:20:04 +0000 |
commit | a4a9ef8c8b9ecf1a1f2dd71a608032db45aad1ea (patch) | |
tree | b8cdbb1c0bee68f909a1c47cdec46f25e584f979 /java/src/main | |
parent | b541e3c9665dd0d73f0a5f8995822a2b611b15a3 (diff) | |
download | protobuf-a4a9ef8c8b9ecf1a1f2dd71a608032db45aad1ea.tar.gz protobuf-a4a9ef8c8b9ecf1a1f2dd71a608032db45aad1ea.tar.bz2 protobuf-a4a9ef8c8b9ecf1a1f2dd71a608032db45aad1ea.zip |
Roll back revision 313. A similar but far more exensive change was made in our internal branch, which will be integrated soon.
Diffstat (limited to 'java/src/main')
-rw-r--r-- | java/src/main/java/com/google/protobuf/CodedOutputStream.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/java/src/main/java/com/google/protobuf/CodedOutputStream.java b/java/src/main/java/com/google/protobuf/CodedOutputStream.java index 18da6d9d..58dd1506 100644 --- a/java/src/main/java/com/google/protobuf/CodedOutputStream.java +++ b/java/src/main/java/com/google/protobuf/CodedOutputStream.java @@ -193,23 +193,6 @@ public final class CodedOutputStream { writeStringNoTag(value); } - /** - * Write a {@code string} field, including tag, to the stream, where bytes - * is the encoded version of value. Used by the SPEED version of messages - * to avoid performing the UTF-8 conversion twice. bytes is simply a hint - * and may be null. If it is null, value will be converted as usual. - */ - public void writeStringCached(final int fieldNumber, final String value, - ByteString bytes) - throws IOException { - // The cache can be null if serializing without getting the size first, or - // if there are multiple threads. - if (bytes == null) { - bytes = ByteString.copyFromUtf8(value); - } - writeBytes(fieldNumber, bytes); - } - /** Write a {@code group} field, including tag, to the stream. */ public void writeGroup(final int fieldNumber, final MessageLite value) throws IOException { |