Convert Description to a record class#1486
Conversation
Also add type enum and creation static method
|
If we are intending to convert the extractor to Kotlin in the near future, I don't think refactors such as this will hold much value as they will end up being redundant. |
|
Records have some optimizations: https://android-developers.googleblog.com/2023/06/records-in-android-studio-flamingo.html |
beb57c6 to
70661de
Compare
|
|
TobiGr
left a comment
There was a problem hiding this comment.
Thank you. While you are at it, please add a SPDX license header to Description as well as JDoc. I have added the bump of the target and compatibility version to the description. That's a breaking change which should be visible.



Descriptionvalue class to a record for conciseness.ofmethod to avoid redundant object creation for empty descriptions.Typeenum for type safety.Breaking
Increases the target and source compatibility java version from 11 to 17.