robohorse/RoboPOJOGenerator

Useless modifier: data

Closed this issue · 1 comments

Kotlin compiler generates a huge amount of garbage for data classes.

It's very easy to add a modifier, and very hard to analyze whether instances are used, for example, as a key in a HashMap (data classes implement hashCode()).

It's better to generate 'normal' classes and let the user decide on their own whether to make their classes data.

Hey, thanks for the feedback. Please check 2.3.8 - it will be live soon.