* To load the class, this method uses the context class loader
* of the current thread. If the program is running on some application
* server, the context class loader might be inappropriate to load the
- * class.<p>
+ * class.
*
- * This can be changed by subclassing the pool and changing
- * the getClassLoader() method.
+ * <p>This can be changed by subclassing the pool and changing
+ * the <code>getClassLoader()</code> method.
*
* <p>This method is provided for convenience. If you need more
* complex functionality, you should write your own class loader.
*
* @see #toClass(CtClass, java.lang.ClassLoader)
+ * @see #getClassLoader()
*/
public Class toClass(CtClass clazz) throws CannotCompileException {
return toClass(clazz, getClassLoader());
}
/**
- * Get the classloader for this pool.<p>
+ * Get the classloader for <code>toClass()</code>, <code>getAnnotations()</code> in
+ * <code>CtClass</code>, etc.
*
- * The default is the context class loader.
+ * <p>The default is the context class loader.
*
* @return the classloader for the pool
+ * @see #toClass(CtClass)
+ * @see CtClass#getAnnotations()
*/
public ClassLoader getClassLoader() {
return getContextClassLoader();