Skip to content

Navigation Menu

Sign in
Sign up

Docs: note ClassPath.getResources keeps one entry per path #8608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hashim1999164 wants to merge 1 commit into google:master
base: master
Choose a base branch
Loading
from Hashim1999164:docs/classpath-getresources-duplicate-paths-2712
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion guava/src/com/google/common/reflect/ClassPath.java
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p><b>Note:</b> {@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<ResourceInfo> getResources() {
return resources;
Expand Down

AltStyle によって変換されたページ (->オリジナル) /