Returning an internal List or Map safely requires knowing the difference between a live unmodifiable view and a true defensive snapshot copy. Just as critical, broken equals/hashCode contracts or subtracting ints in Comparators quietly corrupt maps and sorts.
More lessons in Complete Core Java