Documentation of ClassPath#getResources() is misleading #2712
Labels
P3
package=reflect
status=triaged
type=api-docs
Change/add API documentation
type=enhancement
Make an existing feature better
Javadocs on ClassPath#getResources() reads:
This is not exactly true for files which has same path relative to JAR.
Eg. if I want to load files all resources named "META-INF/schema.xml" from all JAR files on classpath, it will pick only last one, due to nature of backing ImmutableSet.
It should be either mentioned in javadocs, or allow "duplicates" for example by using ImmutableList or by changing ResourceInfo#equals to consider URL instead of just resourceName;
The text was updated successfully, but these errors were encountered: