Commit e397c4a
committed
fix(protobuf): handle same package proto type reference
The change improves the field proto type string generation logic by checking if the field's proto class is in the same package as the parent proto class. When they share the same package, only the class name is used instead of the full qualified name (package.className), making the generated proto files cleaner and more idiomatic.1 parent d74db38 commit e397c4a
File tree
1 file changed
+7
-2
lines changed- widget/light-jprotobuf/src/main/java/com/iohao/game/widget/light/protobuf
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
| |||
0 commit comments