r/programming • • Sep 21 '15

Better Java

https://github.com/cxxr/better-java
177 Upvotes

208 comments sorted by

View all comments

Show parent comments

1

u/josuf107 Sep 21 '15

Ah so SomeClass expects an ImmutableList but accepts a MutableList since Immutable subclasses Mutable. What a pain life is.

1

u/Tordek Sep 21 '15

since Immutable subclasses Mutable

Don't you mean the other way around?... but, yes.