Index: third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java |
diff --git a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java |
index 55e33d21d074562639291c6c37f995f978c02c40..85ce7b24ac8a116f876a0cd274368b40219c2a3a 100644 |
--- a/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java |
+++ b/third_party/protobuf/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java |
@@ -107,23 +107,11 @@ public class InvalidProtocolBufferException extends IOException { |
"Protocol message end-group tag did not match expected tag."); |
} |
- static InvalidWireTypeException invalidWireType() { |
- return new InvalidWireTypeException( |
+ static InvalidProtocolBufferException invalidWireType() { |
+ return new InvalidProtocolBufferException( |
"Protocol message tag had invalid wire type."); |
} |
- /** |
- * Exception indicating that and unexpected wire type was encountered for a field. |
- */ |
- @ExperimentalApi |
- public static class InvalidWireTypeException extends InvalidProtocolBufferException { |
- private static final long serialVersionUID = 3283890091615336259L; |
- |
- public InvalidWireTypeException(String description) { |
- super(description); |
- } |
- } |
- |
static InvalidProtocolBufferException recursionLimitExceeded() { |
return new InvalidProtocolBufferException( |
"Protocol message had too many levels of nesting. May be malicious. " + |