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