diff options
author | Brian Duff <bduff@google.com> | 2014-07-22 06:14:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-07-21 15:45:44 +0000 |
commit | 95d99df4574c28debcf9646056a0350ff44bc7c9 (patch) | |
tree | 9692764ef6648b37fa43762477fd01fa23dca8a4 /src | |
parent | 11607eb10bcf3a46e92257966949d48b28bb7bf3 (diff) | |
parent | ba13794999073dd15f7e3ed3bfb87ddac477e19b (diff) | |
download | external_protobuf-95d99df4574c28debcf9646056a0350ff44bc7c9.zip external_protobuf-95d99df4574c28debcf9646056a0350ff44bc7c9.tar.gz external_protobuf-95d99df4574c28debcf9646056a0350ff44bc7c9.tar.bz2 |
Merge "Don't return NULL from {Boxed}PrimitiveTypeName."
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/compiler/javanano/javanano_helpers.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/google/protobuf/compiler/javanano/javanano_helpers.cc b/src/google/protobuf/compiler/javanano/javanano_helpers.cc index e8326a4..bf88f25 100644 --- a/src/google/protobuf/compiler/javanano/javanano_helpers.cc +++ b/src/google/protobuf/compiler/javanano/javanano_helpers.cc @@ -336,14 +336,14 @@ string PrimitiveTypeName(JavaType type) { case JAVATYPE_STRING : return "java.lang.String"; case JAVATYPE_BYTES : return "byte[]"; case JAVATYPE_ENUM : return "int"; - case JAVATYPE_MESSAGE: return NULL; + case JAVATYPE_MESSAGE: return ""; // No default because we want the compiler to complain if any new // JavaTypes are added. } GOOGLE_LOG(FATAL) << "Can't get here."; - return NULL; + return ""; } string BoxedPrimitiveTypeName(JavaType type) { @@ -356,14 +356,14 @@ string BoxedPrimitiveTypeName(JavaType type) { case JAVATYPE_STRING : return "java.lang.String"; case JAVATYPE_BYTES : return "byte[]"; case JAVATYPE_ENUM : return "java.lang.Integer"; - case JAVATYPE_MESSAGE: return NULL; + case JAVATYPE_MESSAGE: return ""; // No default because we want the compiler to complain if any new // JavaTypes are added. } GOOGLE_LOG(FATAL) << "Can't get here."; - return NULL; + return ""; } string EmptyArrayName(const Params& params, const FieldDescriptor* field) { |