diff --git a/guava/src/com/google/common/reflect/ClassPath.java b/guava/src/com/google/common/reflect/ClassPath.java index f57ed6a39875..592589e716da 100644 --- a/guava/src/com/google/common/reflect/ClassPath.java +++ b/guava/src/com/google/common/reflect/ClassPath.java @@ -139,8 +139,12 @@ public static ClassPath from(ClassLoader classloader) throws IOException { } /** - * Returns all resources loadable from the current class path, including the class files of all + * Returns resources loadable from the current class path, including the class files of all * loadable classes but excluding the "META-INF/MANIFEST.MF" file. + * + *
Note: {@link ResourceInfo} instances are equal when they share the same resource
+ * name and {@link ClassLoader}. Because this method returns an {@link ImmutableSet}, only one
+ * resource is kept for a given path even if that path appears in multiple jars or directories.
*/
public ImmutableSet