internal change
PiperOrigin-RevId: 805423369
diff --git a/java/core/src/main/resources/google/protobuf/java_mutable_features.proto b/java/core/src/main/resources/google/protobuf/java_mutable_features.proto
index bc66ba1..c356e72 100644
--- a/java/core/src/main/resources/google/protobuf/java_mutable_features.proto
+++ b/java/core/src/main/resources/google/protobuf/java_mutable_features.proto
@@ -32,14 +32,10 @@
}
// Whether to nest the generated class in the generated file class for
- // Java Proto2 Mutable API. This is only applicable to *top-level* messages,
- // enums, and services.
+ // Java Proto2 Mutable API. This is only available at the file level.
optional NestInFileClassFeature.NestInFileClass nest_in_file_class = 6 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FILE,
- targets = TARGET_TYPE_MESSAGE,
- targets = TARGET_TYPE_ENUM,
- targets = TARGET_TYPE_SERVICE,
feature_support = {
edition_introduced: EDITION_2024,
},
diff --git a/src/google/protobuf/compiler/java/helpers.cc b/src/google/protobuf/compiler/java/helpers.cc
index 3650fc4..d829b33 100644
--- a/src/google/protobuf/compiler/java/helpers.cc
+++ b/src/google/protobuf/compiler/java/helpers.cc
@@ -32,6 +32,7 @@
#include "google/protobuf/compiler/java/generator.h"
#include "google/protobuf/compiler/java/name_resolver.h"
#include "google/protobuf/compiler/versions.h"
+#include "google/protobuf/descriptor.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/io/printer.h"
#include "google/protobuf/io/strtod.h"