[Bug 349005] add javadoc detailing the convenience hack of removing

leading /'s
This commit is contained in:
Jesse McConnell 2011-07-19 16:16:41 -05:00
parent d18bae4fe8
commit ba30be6408
1 changed files with 7 additions and 0 deletions

View File

@ -316,6 +316,13 @@ public class WebAppClassLoader extends URLClassLoader
}
/* ------------------------------------------------------------ */
/**
* Get a resource from the classloader
*
* NOTE: this method provides a convenience of hacking off a leading /
* should one be present. This is non-standard and it is recommended
* to not rely on this behavior
*/
public URL getResource(String name)
{
URL url= null;