Skip to content

Commit 7c6c045

Browse files
committed
Remove support for Nano's deprecated package names
This requires that all nano protos have .nano in their package name. The support is expected to be removed from protobuf soon, since using the deprecated package name causes problems.
1 parent eccd231 commit 7c6c045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/java_plugin/cpp/java_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static inline string MethodIdFieldName(const MethodDescriptor* method) {
6565

6666
static inline string MessageFullJavaName(bool nano, const Descriptor* desc) {
6767
string name = google::protobuf::compiler::java::ClassName(desc);
68-
if (nano && !desc->file()->options().javanano_use_deprecated_package()) {
68+
if (nano) {
6969
// XXX: Add "nano" to the original package
7070
// (https://github.com/grpc/grpc-java/issues/900)
7171
if (isupper(name[0])) {
@@ -790,7 +790,7 @@ string ServiceJavaPackage(const FileDescriptor* file, bool nano) {
790790
} else {
791791
result = "";
792792
}
793-
if (nano && !file->options().javanano_use_deprecated_package()) {
793+
if (nano) {
794794
if (!result.empty()) {
795795
result += ".";
796796
}

0 commit comments

Comments
 (0)