That looks quite normal, and yes, it's the constructor field. Ok, there are some ways to make it smaller - like element(element) - but it's far from bad code.
Yes, the code doesn't do anything horrible. It's also perfectly okay, that the constructor does nothing but initialization of fields. But that's not the point. ;-)
27
u/[deleted] Jun 09 '20
That looks quite normal, and yes, it's the constructor field. Ok, there are some ways to make it smaller - like
element(element)- but it's far from bad code.