We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PropertiesConfigReader.canLoad will never return false because getResources never returns null.
getResources
null
@Override public boolean canLoad(ClassLoader loader, String name) { return getResources(loader, name) != null; }
In getResources you see:
private static Collection<URL> getResources(ClassLoader loader, String resourceName) { LinkedHashSet<URL> resources = new LinkedHashSet<URL>(); ... return resources; }
So, canLoad should probably be:
canLoad
@Override public boolean canLoad(ClassLoader loader, String name) { return !getResources(loader, name).isEmpty(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PropertiesConfigReader.canLoad will never return false because
getResources
never returnsnull
.In
getResources
you see:So,
canLoad
should probably be:The text was updated successfully, but these errors were encountered: