String's CASE_INSENSITIVE_ORDER Comparator is inconsistent with equals. However, its field specification is missing a warning about that, and its use as a comparator for TreeMap etc. The warning should be added, along with a link to the discussion of this issue in the Comparator class.