Skip to content

Internal exp #21695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/google/protobuf/compiler/java/name_resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ std::string ClassNameResolver::GetFileImmutableClassName(
return class_name;
}


std::string ClassNameResolver::GetFileClassName(const FileDescriptor* file,
bool immutable) {
return GetFileClassName(file, immutable, false);
Expand Down
2 changes: 2 additions & 0 deletions src/google/protobuf/compiler/java/name_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// Must be last.
#include "google/protobuf/port_def.inc"


namespace google {
namespace protobuf {
class Descriptor;
Expand Down Expand Up @@ -136,6 +137,7 @@ class PROTOC_EXPORT ClassNameResolver {
template <typename Descriptor>
std::string GetJavaClassPackage(const Descriptor& descriptor, bool immutable);


// Caches the result to provide better performance.
absl::flat_hash_map<const FileDescriptor*, std::string>
file_immutable_outer_class_names_;
Expand Down
Loading