When generating java and kotlin enums that have the option deprecated = true; flag the resulting enum generated does not contain the @Deprecated annotation. This appears to be due to the pruning functionality not retaining the deprecated flag and only affects the enum classes (enum constants, messages and fields all work as expected)
Relates to https://github.com/square/wire/issues/3075
When generating java and kotlin enums that have the option
deprecated = true
; flag the resulting enum generated does not contain the@Deprecated
annotation. This appears to be due to the pruning functionality not retaining the deprecated flag and only affects the enum classes (enum constants, messages and fields all work as expected)Example
test/period.proto
Before
After