aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-07-30 13:50:02 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-07-30 13:50:02 +0100
commitd18cc0845606c32e01e044ae5411c7053b1c73ec (patch)
tree6e09e402e5422bc5959ec1032a9fb5b83f14d1e8 /csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
parent3980cf9df1ca9c66718f1fe9817011134f87bbcd (diff)
Generated code for previous commit.
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Type.cs')
-rw-r--r--csharp/src/Google.Protobuf/WellKnownTypes/Type.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
index 91ac0f6b..64142934 100644
--- a/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
+++ b/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
@@ -105,7 +105,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string Name {
get { return name_; }
set {
- name_ = value ?? "";
+ name_ = pb::Preconditions.CheckNotNull(value, "value");
}
}
@@ -327,7 +327,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string Name {
get { return name_; }
set {
- name_ = value ?? "";
+ name_ = pb::Preconditions.CheckNotNull(value, "value");
}
}
@@ -336,7 +336,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string TypeUrl {
get { return typeUrl_; }
set {
- typeUrl_ = value ?? "";
+ typeUrl_ = pb::Preconditions.CheckNotNull(value, "value");
}
}
@@ -610,7 +610,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string Name {
get { return name_; }
set {
- name_ = value ?? "";
+ name_ = pb::Preconditions.CheckNotNull(value, "value");
}
}
@@ -783,7 +783,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string Name {
get { return name_; }
set {
- name_ = value ?? "";
+ name_ = pb::Preconditions.CheckNotNull(value, "value");
}
}
@@ -932,7 +932,7 @@ namespace Google.Protobuf.WellKnownTypes {
public string Name {
get { return name_; }
set {
- name_ = value ?? "";
+ name_ = pb::Preconditions.CheckNotNull(value, "value");
}
}