It seems that many of the pojo classes can be immutable classes, that would help with and reduce possible bugs, such as synchronization problems.
Not a Java expert, but from what I understand this would mean creating constructors and marking all fields as final, right?
Pull requests welcome :)
You can assing this to me, I'll do it next week though.
Thanks!
I will start ASAP (probably sunday).
PS:
I was ill and working on projects for school for most of this week, so I wasn't able to look at any GitHub notification...and they accumulated quite a bit. I'm able to work now, so I apologize for the lateness.
(see #1083)
Changing the names from "Pojo" to something more descriptive would be in order, what do you say the name could be?
(see #1086)
Closing the issue!
@EmmanuelMess as an active contributor, do you want to join the private contributor chat? If so, send me an email at [email protected] and I'll add you!
Closing the issue!
Not yet, some of the Pojos aren't immutable yet.
@EmmanuelMess do you still plan to work on this at some point?
Otherwise, are you OK to close?
@EmmanuelMess do you still plan to work on this at some point?
No plans for now, too little time.
Otherwise, are you OK to close?
Well the issue is still there for some Pojos.
I've marked most Pojos as final (both class and properties) where it made sense.
I've kept some as mutable classes (thinking about SearchProviders) where it made sense to keep a single property change rather than using the constructor for the whole Pojo.
This shouldn't be a threading issue, as Pojo writes only happen from a single thread (they're only read from the UI thread, never changed).
Thanks for raising the concern and helping with the first batch!