From 5805c2dfb78a3cb38d297d3f102649cc1b7a6310 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Thu, 31 Mar 2016 13:50:38 -0700 Subject: [PATCH] Fix javanano package --- src/google/protobuf/compiler/javanano/javanano_generator.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/google/protobuf/compiler/javanano/javanano_generator.cc b/src/google/protobuf/compiler/javanano/javanano_generator.cc index a342e6bb0f..7c3a04212f 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);