# HG changeset patch # User martin # Date 1546624980 28800 # Fri Jan 04 10:03:00 2019 -0800 # Node ID 2db90e6a9403a9f81a9c60fdf69c860ca120d367 # Parent e5e485325c9a903af36b2193d29d3dfa2d6d3b7b imported patch ClassLoader-resources-spec diff --git a/src/java.base/share/classes/java/lang/ClassLoader.java b/src/java.base/share/classes/java/lang/ClassLoader.java --- a/src/java.base/share/classes/java/lang/ClassLoader.java +++ b/src/java.base/share/classes/java/lang/ClassLoader.java @@ -1365,11 +1365,7 @@ * class loader built into the virtual machine is searched. If not found, * this method will invoke {@link #findResource(String)} to find the resource. * - * @apiNote Where several modules are defined to the same class loader, - * and where more than one module contains a resource with the given name, - * then the ordering that modules are searched is not specified and may be - * very unpredictable. - * When overriding this method it is recommended that an implementation + * @apiNote When overriding this method it is recommended that an implementation * ensures that any delegation is consistent with the {@link * #getResources(java.lang.String) getResources(String)} method. * @@ -1426,10 +1422,7 @@ * are the URLs found by searching the parent class loader followed by * the elements found with {@code findResources}. * - * @apiNote Where several modules are defined to the same class loader, - * and where more than one module contains a resource with the given name, - * then the ordering is not specified and may be very unpredictable. - * When overriding this method it is recommended that an + * @apiNote When overriding this method it is recommended that an * implementation ensures that any delegation is consistent with the {@link * #getResource(java.lang.String) getResource(String)} method. This should * ensure that the first element returned by the Enumeration's