Join Slack
Powered by
Hello guys. Not really sure where to post this, bu...
# announcements
r
Richard
08/07/2018, 1:26 PM
Hello guys. Not really sure where to post this, but i feel like non-override
val person: Entity? = null
should throw a warning in IntelliJ. Or do you find any case where it's OK?
c
Czar
08/07/2018, 1:28 PM
Sure, e.g. when value is set by something like Hibernate via reflection, but should not be set manually by user.
r
Richard
08/07/2018, 1:36 PM
oh 😞
e
evanchooly
08/07/2018, 6:03 PM
setting a val to null is probably a bug but doubtful the compiler can do much for you there.
Open in Slack
Previous
Next