Skip to content

Commit 1d81cf2

Browse files
Add note that java_outer_classname and java_multiple_files guidelines only apply to before Edition 2024.
PiperOrigin-RevId: 862235692
1 parent 1a7567c commit 1d81cf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/best-practices/dos-donts.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ message Photo {
343343
}
344344
```
345345

346-
## **Do** Use java_outer_classname {#java-outer-classname}
346+
## **Do** Use java_outer_classname (before Edition 2024) {#java-outer-classname}
347347

348348
Every proto schema definition file should set option `java_outer_classname` to
349349
the `.proto` file name converted to TitleCase with the '.' removed. For example,
@@ -352,3 +352,6 @@ the file `student_record_request.proto` should set:
352352
```java
353353
option java_outer_classname = "StudentRecordRequestProto";
354354
```
355+
356+
The default behavior of Edition 2024 files has been aligned with this
357+
recommendation, so no option should be set when using Edition 2024 or later.

0 commit comments

Comments
 (0)