diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2016-03-31 13:50:38 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-03-31 13:50:38 -0700 |
commit | 5805c2dfb78a3cb38d297d3f102649cc1b7a6310 (patch) | |
tree | e9269a6ec40d8266874fbe0fda88567e327d8adf /src/google | |
parent | fc7eeda69c970a1f893acc17c69ed2def1611c25 (diff) | |
download | protobuf-5805c2dfb78a3cb38d297d3f102649cc1b7a6310.tar.gz protobuf-5805c2dfb78a3cb38d297d3f102649cc1b7a6310.tar.bz2 protobuf-5805c2dfb78a3cb38d297d3f102649cc1b7a6310.zip |
Fix javanano package
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/javanano/javanano_generator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/javanano/javanano_generator.cc b/src/google/protobuf/compiler/javanano/javanano_generator.cc index a342e6bb..7c3a0421 100644 --- a/src/google/protobuf/compiler/javanano/javanano_generator.cc +++ b/src/google/protobuf/compiler/javanano/javanano_generator.cc @@ -68,6 +68,9 @@ void UpdateParamsRecursively(Params& params, } if (file->options().has_java_package()) { string result = file->options().java_package(); + if (!result.empty()) { + result += "."; + } result += "nano"; params.set_java_package( file->name(), result); |