Skip to content

Commit 7ba4649

Browse files
compiler: Replace remaining uses of deprecated ClassName method
1 parent 2360771 commit 7ba4649

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/java_plugin/cpp/java_generator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static inline std::string MethodIdFieldName(const MethodDescriptor* method) {
213213
}
214214

215215
static inline std::string MessageFullJavaName(const Descriptor* desc) {
216-
return protobuf::compiler::java::ClassName(desc);
216+
return protobuf::compiler::java::QualifiedClassName(desc);
217217
}
218218

219219
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
@@ -1050,7 +1050,7 @@ static void PrintGetServiceDescriptorMethod(const ServiceDescriptor* service,
10501050
(*vars)["proto_base_descriptor_supplier"] = service_name + "BaseDescriptorSupplier";
10511051
(*vars)["proto_file_descriptor_supplier"] = service_name + "FileDescriptorSupplier";
10521052
(*vars)["proto_method_descriptor_supplier"] = service_name + "MethodDescriptorSupplier";
1053-
(*vars)["proto_class_name"] = protobuf::compiler::java::ClassName(service->file());
1053+
(*vars)["proto_class_name"] = protobuf::compiler::java::QualifiedClassName(service->file());
10541054
p->Print(
10551055
*vars,
10561056
"private static abstract class $proto_base_descriptor_supplier$\n"
@@ -1384,7 +1384,7 @@ void GenerateService(const ServiceDescriptor* service,
13841384
}
13851385

13861386
std::string ServiceJavaPackage(const FileDescriptor* file) {
1387-
std::string result = protobuf::compiler::java::ClassName(file);
1387+
std::string result = protobuf::compiler::java::QualifiedClassName(file);
13881388
size_t last_dot_pos = result.find_last_of('.');
13891389
if (last_dot_pos != std::string::npos) {
13901390
result.resize(last_dot_pos);

0 commit comments

Comments
 (0)