Join Slack
Powered by
what's the difference between the data class code ...
# getting-started
b
bjonnh
04/26/2019, 8:16 PM
what's the difference between the data class code and the java code presented?
s
Stephan Schroeder
04/29/2019, 10:55 AM
the issue is probably that Kotlin wraps your properties automatically with getter and setter. So It’s not obvious if your annotation is on the field or the getter/setter. more here:
https://stackoverflow.com/questions/42194682/how-to-get-annotations-of-a-kotlin-property-from-java#42198773
Open in Slack
Previous
Next