Closed GoogleCodeExporter closed 9 years ago
What's wrong with the workaround of using Collections.unmodifiableMap on a
mutable map?
Large amounts of code already assume that anything Immutable* can't have null
values. (Additionally, you'd have to extend this to every immutable collection
type, not just Map.)
Original comment by wasserman.louis
on 14 Jun 2014 at 9:30
https://code.google.com/p/guava-libraries/wiki/UsingAndAvoidingNullExplained
You could also store an Optional<V> as your value.
Original comment by kak@google.com
on 15 Jun 2014 at 10:46
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
rattigan@gmail.com
on 14 Jun 2014 at 9:26