diff options
Diffstat (limited to 'src/google/protobuf/compiler/javamicro/javamicro_message.cc')
-rw-r--r-- | src/google/protobuf/compiler/javamicro/javamicro_message.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/javamicro/javamicro_message.cc b/src/google/protobuf/compiler/javamicro/javamicro_message.cc index 594203a..6f67e74 100644 --- a/src/google/protobuf/compiler/javamicro/javamicro_message.cc +++ b/src/google/protobuf/compiler/javamicro/javamicro_message.cc @@ -170,9 +170,11 @@ void MessageGenerator::GenerateStaticVariableInitializers( } void MessageGenerator::Generate(io::Printer* printer) { + const string& file_name = descriptor_->file()->name(); bool is_own_file = - params_.java_multiple_files() || ((descriptor_->containing_type() == NULL) - && !params_.has_java_outer_classname(descriptor_->file()->name())); + params_.java_multiple_files(file_name) + || ((descriptor_->containing_type() == NULL) + && !params_.has_java_outer_classname(file_name)); #if 0 GOOGLE_LOG(INFO) << "is_own_file=" << is_own_file; |