--- old/src/java.base/share/classes/java/util/Collections.java 2019-05-13 17:16:12.000000000 -0700 +++ new/src/java.base/share/classes/java/util/Collections.java 2019-05-13 17:16:12.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -5379,15 +5379,12 @@ * Returns {@code true} if the two specified collections have no * elements in common. * - *

Care must be exercised if this method is used on collections that - * do not comply with the general contract for {@code Collection}. - * Implementations may elect to iterate over either collection and test - * for containment in the other collection (or to perform any equivalent - * computation). If either collection uses a nonstandard equality test - * (as does a {@link SortedSet} whose ordering is not compatible with - * equals, or the key set of an {@link IdentityHashMap}), both - * collections must use the same nonstandard equality test, or the - * result of this method is undefined. + *

Care must be exercised to ensure that both collections use the + * same membership semantics. The implementation may elect to iterate + * over either collection and test element containment in the other + * collection, or perform any equivalent computation. If the collections + * use different membership semantics, the result of this method is + * undefined. * *

Care must also be exercised when using collections that have * restrictions on the elements that they may contain. Collection