document why this is not a NPE

This commit is contained in:
Stephen Connolly 2014-01-06 10:46:44 +00:00
parent 445421051c
commit 4ff2d7ef2a
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ public class ExpressionDocumenter
URL myResource = ExpressionDocumenter.class.getClassLoader().getResource( myResourcePath );
assert myResource != null : "The resource is this class itself loaded by its own classloader and must exist";
String myClasspathEntry = myResource.getPath();
myClasspathEntry = myClasspathEntry.substring( 0, myClasspathEntry.length() - ( myResourcePath.length() + 2 ) );