Skip to content

Commit 25c59fb

Browse files
Clarify the not-Java-packages guidance a bit.
PiperOrigin-RevId: 914412431
1 parent e95e6de commit 25c59fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

content/programming-guides/style.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ Package names should attempt to be a short but unique name based on the project
9696
name. The package should not be coupled with the directory path, especially when
9797
the files are in a deeply nested path.
9898

99-
Package names should not be Java packages (`com.company.x.y`); instead use `x.y`
100-
as the package and use the `java_package` option.
99+
Package names should not be Java style packages, even when located in Java or
100+
Kotlin directory. Do not use any of `com.company.x.y`, `com_company_x_y`, or
101+
`java_com_company_x_y`. Instead use `x.y` as the package and set `java_package =
102+
"com.company.x.y"`.
101103

102104
## Message Names {#message-names}
103105

0 commit comments

Comments
 (0)