aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
diff options
context:
space:
mode:
authoralien <the-alien@live.ru>2016-03-29 20:56:32 +0300
committeralien <the-alien@live.ru>2016-03-29 20:56:32 +0300
commit6f8dd2115b3ed07819a48dfa78b15770dfa2c450 (patch)
tree2c71285c5f435c337114d5b8c0c0d6b2ecd302db /csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
parent0d32ab37fa94134427478d6776108e7cdb3e5e15 (diff)
downloadprotobuf-6f8dd2115b3ed07819a48dfa78b15770dfa2c450.tar.gz
protobuf-6f8dd2115b3ed07819a48dfa78b15770dfa2c450.tar.bz2
protobuf-6f8dd2115b3ed07819a48dfa78b15770dfa2c450.zip
Code review fixes
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
index 63f168ca..f5a835e5 100644
--- a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
+++ b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
@@ -102,10 +102,8 @@ namespace Google.Protobuf.Reflection
var map = new Dictionary<string, FieldDescriptor>();
foreach (var field in fields)
{
- map[JsonFormatter.ToCamelCase(field.Name)] = field;
map[field.Name] = field;
- if (!string.IsNullOrEmpty(field.JsonName))
- map[field.JsonName] = field;
+ map[field.JsonName] = field;
}
return new ReadOnlyDictionary<string, FieldDescriptor>(map);
}