doc polish

This commit is contained in:
nathan 2017-09-15 14:21:58 +02:00
parent 514db82c46
commit 9bf78f0f70
1 changed files with 3 additions and 4 deletions

View File

@ -234,7 +234,7 @@ class LocationResolver {
* 2) Checks the current thread context classloader <br/>
* 3) Checks the Classloader system resource
*
* @param resourceName the name, including path information (Only valid '\' as the path separator)
* @param resourceName the name, including path information (Only '\' is valid as the path separator)
*
* @return the resource stream, if it could be found, otherwise null.
*/
@ -258,16 +258,15 @@ class LocationResolver {
}
}
// 2) is it in the context classloader
// 2) maybe it's in the context classloader
if (resourceAsStream == null) {
resourceAsStream = Thread.currentThread()
.getContextClassLoader()
.getResourceAsStream(resourceName);
}
// 3) is it in the system classloader
// 3) maybe it's in the system classloader
if (resourceAsStream == null) {
// maybe it's in the system classloader?
resourceAsStream = ClassLoader.getSystemResourceAsStream(resourceName);
}