Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java
diff --git a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java
index 104f8007b878c7999fc45ea8bec43eac03065f58..9500f905fcaf581d19b24f9e048699486e1af0ca 100644
--- a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java
+++ b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java
@@ -176,41 +176,6 @@ public final class UnknownFieldSetLite {
}
/**
- * Serializes the set and writes it to {@code output} using {@code MessageSet} wire format.
- *
- * <p>For use by generated code only.
- */
- public void writeAsMessageSetTo(CodedOutputStream output) throws IOException {
- for (int i = 0; i < count; i++) {
- int fieldNumber = WireFormat.getTagFieldNumber(tags[i]);
- output.writeRawMessageSetExtension(fieldNumber, (ByteString) objects[i]);
- }
- }
-
- /**
- * Get the number of bytes required to encode this field, including field
- * number, using {@code MessageSet} wire format.
- */
- public int getSerializedSizeAsMessageSet() {
- int size = memoizedSerializedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- for (int i = 0; i < count; i++) {
- int tag = tags[i];
- int fieldNumber = WireFormat.getTagFieldNumber(tag);
- size += CodedOutputStream.computeRawMessageSetExtensionSize(
- fieldNumber, (ByteString) objects[i]);
- }
-
- memoizedSerializedSize = size;
-
- return size;
- }
-
- /**
* Get the number of bytes required to encode this set.
*
* <p>For use by generated code only.
@@ -303,8 +268,7 @@ public final class UnknownFieldSetLite {
}
}
- // Package private for unsafe experimental runtime.
- void storeField(int tag, Object value) {
+ private void storeField(int tag, Object value) {
ensureCapacity();
tags[count] = tag;

Powered by Google App Engine
This is Rietveld 408576698