Index: third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java |
diff --git a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java |
index 49b3504fe75c78b9a3d5947aff4d3079cdc294ea..c906420da1a6ea05bbd4f36b4880f84a2eec00e7 100644 |
--- a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java |
+++ b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java |
@@ -57,7 +57,6 @@ import java.util.TreeMap; |
* @author kenton@google.com Kenton Varda |
*/ |
public final class UnknownFieldSet implements MessageLite { |
- |
private UnknownFieldSet() {} |
/** Create a new {@link Builder}. */ |
@@ -131,8 +130,7 @@ public final class UnknownFieldSet implements MessageLite { |
@Override |
public void writeTo(final CodedOutputStream output) throws IOException { |
for (final Map.Entry<Integer, Field> entry : fields.entrySet()) { |
- Field field = entry.getValue(); |
- field.writeTo(entry.getKey(), output); |
+ entry.getValue().writeTo(entry.getKey(), output); |
} |
} |
@@ -1022,7 +1020,7 @@ public final class UnknownFieldSet implements MessageLite { |
} catch (InvalidProtocolBufferException e) { |
throw e.setUnfinishedMessage(builder.buildPartial()); |
} catch (IOException e) { |
- throw new InvalidProtocolBufferException(e) |
+ throw new InvalidProtocolBufferException(e.getMessage()) |
.setUnfinishedMessage(builder.buildPartial()); |
} |
return builder.buildPartial(); |