Commit f09fed21 authored by Jon Skeet's avatar Jon Skeet

Small tidying.

parent 2cbd799b
// Protocol Buffers - Google's data interchange format using System;
using System.Collections;
using System.Collections.Generic;
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. // Copyright 2008 Google Inc.
// http://code.google.com/p/protobuf/ // http://code.google.com/p/protobuf/
// //
...@@ -14,9 +17,6 @@ ...@@ -14,9 +17,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
using System.Text; using System.Text;
using System;
using System.Collections.Generic;
using System.Collections;
namespace Google.ProtocolBuffers { namespace Google.ProtocolBuffers {
/// <summary> /// <summary>
...@@ -27,7 +27,7 @@ namespace Google.ProtocolBuffers { ...@@ -27,7 +27,7 @@ namespace Google.ProtocolBuffers {
private static readonly ByteString empty = new ByteString(new byte[0]); private static readonly ByteString empty = new ByteString(new byte[0]);
private byte[] bytes; private readonly byte[] bytes;
/// <summary> /// <summary>
/// Constructs a new ByteString from the given byte array. The array is /// Constructs a new ByteString from the given byte array. The array is
...@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers { ...@@ -124,7 +124,7 @@ namespace Google.ProtocolBuffers {
return CodedInputStream.CreateInstance(bytes); return CodedInputStream.CreateInstance(bytes);
} }
// TODO(jonskeet): CopyTo, Equals, GetHashCode if they turn out to be required // TODO(jonskeet): CopyTo if it turns out to be required
public override bool Equals(object obj) { public override bool Equals(object obj) {
ByteString other = obj as ByteString; ByteString other = obj as ByteString;
......
...@@ -151,7 +151,6 @@ namespace Google.ProtocolBuffers { ...@@ -151,7 +151,6 @@ namespace Google.ProtocolBuffers {
/// <summary> /// <summary>
/// Like Build(), but will wrap UninitializedMessageException in /// Like Build(), but will wrap UninitializedMessageException in
/// InvalidProtocolBufferException. /// InvalidProtocolBufferException.
/// TODO(jonskeet): This used to be generated for each class. Find out why.
/// </summary> /// </summary>
public TMessage BuildParsed() { public TMessage BuildParsed() {
if (!IsInitialized) { if (!IsInitialized) {
...@@ -162,7 +161,6 @@ namespace Google.ProtocolBuffers { ...@@ -162,7 +161,6 @@ namespace Google.ProtocolBuffers {
/// <summary> /// <summary>
/// Implementation of <see cref="IBuilder{TMessage, TBuilder}.Build" />. /// Implementation of <see cref="IBuilder{TMessage, TBuilder}.Build" />.
/// TODO(jonskeet): This used to be generated for each class. Find out why.
/// </summary> /// </summary>
public override TMessage Build() { public override TMessage Build() {
if (!IsInitialized) { if (!IsInitialized) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment