diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2017-11-09 18:25:25 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2017-11-10 09:01:07 +0100 |
commit | 4a5e1bd043c8ed01b172ca0ad91af00ed45b0640 (patch) | |
tree | fdedbd44b62c4a6892b93be9447f1ebc77b030f6 /csharp | |
parent | 435f61102bf23b9c9be2592d27b8935a8717e610 (diff) |
check already performed by MergeFrom
Diffstat (limited to 'csharp')
-rw-r--r-- | csharp/src/Google.Protobuf/MessageParser.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/csharp/src/Google.Protobuf/MessageParser.cs b/csharp/src/Google.Protobuf/MessageParser.cs index 569414b0..e5334591 100644 --- a/csharp/src/Google.Protobuf/MessageParser.cs +++ b/csharp/src/Google.Protobuf/MessageParser.cs @@ -64,7 +64,6 @@ namespace Google.Protobuf /// <returns>The newly parsed message.</returns> public IMessage ParseFrom(byte[] data) { - ProtoPreconditions.CheckNotNull(data, "data"); IMessage message = factory(); message.MergeFrom(data); return message; @@ -79,7 +78,6 @@ namespace Google.Protobuf /// <returns>The newly parsed message.</returns> public IMessage ParseFrom(byte[] data, int offset, int length) { - ProtoPreconditions.CheckNotNull(data, "data"); IMessage message = factory(); message.MergeFrom(data, offset, length); return message; @@ -92,7 +90,6 @@ namespace Google.Protobuf /// <returns>The parsed message.</returns> public IMessage ParseFrom(ByteString data) { - ProtoPreconditions.CheckNotNull(data, "data"); IMessage message = factory(); message.MergeFrom(data); return message; @@ -206,7 +203,6 @@ namespace Google.Protobuf /// <returns>The newly parsed message.</returns> public new T ParseFrom(byte[] data) { - ProtoPreconditions.CheckNotNull(data, "data"); T message = factory(); message.MergeFrom(data); return message; @@ -219,7 +215,6 @@ namespace Google.Protobuf /// <returns>The parsed message.</returns> public new T ParseFrom(ByteString data) { - ProtoPreconditions.CheckNotNull(data, "data"); T message = factory(); message.MergeFrom(data); return message; |