@@ -62,11 +62,11 @@ public static URL getResource(String resource, Class clazz) {
6262 * loader that loaded this class (<code>Loader</code>).<p>
6363 * </li>
6464 * <li>Try one last time with
65- * <code>ClassLoader.getSystemResource(resource)</code>, that is is using the
65+ * <code>ClassLoader.getSystemResource(resource)</code>, that is using the
6666 * system class loader.
6767 * </ol>
6868 *
69- * <p>Nota bene: In versions of reload4j 1.2.23 and earlier, the jaadoc documentation stated that
69+ * <p>Nota bene: In versions of reload4j 1.2.23 and earlier, the javadoc documentation stated that
7070 * the thread context class loader was used but when running under JDK 9 and later this
7171 * was <b>not</b> actually the case. As of version 1.2.25, the javadoc corresponds to the original
7272 * intention as documented.
@@ -78,13 +78,13 @@ public static URL getResource(String resource, Class clazz) {
7878 static public URL getResource (String resource ) {
7979
8080 try {
81- // unless intsructed to ignore the TCL, try getting the resource using TCL, return if found.
81+ // unless instructed to ignore the TCL, try getting the resource using TCL, return if found.
8282 if (!ignoreTCL ) {
8383 URL url0 = innerGetResource (resource , getTCL ());
8484 if (url0 != null ) { return url0 ; }
8585 }
8686
87- // if we were instructed to ignore TCL or if no url was dound , try using the
87+ // if we were instructed to ignore TCL or if no url was found , try using the
8888 // class loader that loaded this class.
8989 URL url = innerGetResource (resource , Loader .class .getClassLoader ());
9090 if (url != null ) { return url ; }
@@ -100,9 +100,8 @@ static public URL getResource(String resource) {
100100 }
101101
102102 // Last ditch attempt: get the resource from the class path. It
103- // may be the case that clazz was loaded by the Extentsion class
104- // loader which the parent of the system class loader. Hence the
105- // code below.
103+ // may be the case that clazz was loaded by the Extension class
104+ // loader which is also the parent of the system class loader.
106105 LogLog .debug ("Trying to find [" + resource + "] using ClassLoader.getSystemResource()." );
107106 return ClassLoader .getSystemResource (resource );
108107 }
@@ -148,9 +147,9 @@ private static ClassLoader getTCL() throws IllegalAccessException, InvocationTar
148147 * Load the specified class using the {@linl Class#forName} method.
149148 *
150149 * <p>Nota bene: In versions of reload4j 1.2.23 and earlier, the documentation stated that
151- * the thread context class loader was used to load the specified class but
152- * when running under JDK 9 and later this was <b>not</b> actually the case. As of version 1.2.24,
153- * the javadoc above matches the code as executed .
150+ * the thread context class loader was used to load the specified class. However,
151+ * when running under JDK 9 and later this was <b>not</b> actually the case.
152+ * Version 1.2.5 fixes this discrepancy .
154153 * </p>
155154 *
156155 * @param clazz the name of class to load
0 commit comments