Is it possible to mark concrete 3rd party dependen...
# compose
g
Is it possible to mark concrete 3rd party dependency classes as Immutable or Stable, like via some compiler plugin option? My current use-case is Joda Time where most classes are immutable, but this is applicable for basically any library with immutable model classes.
j
For well-known libraries like Joda you can send a PR to the compiler to simply treat them as such. They started adding third-party libraries like Dagger and Protobuf to the list. A good start would be to copy the list that error-prone uses (which includes Joda Time, 310BP, java.time, and many other non-time types).
g
Alright, this looks like a good contribution. Thank you!
j
What Jake said for popular libraries only. I've added a few first hand. There has been talk of allowing developers to provide a config file as well, but that hasn't reached the top of the priority list yet.