mirror of
https://github.com/apache/maven.git
synced 2025-03-06 16:49:27 +00:00
document why this is not a NPE
This commit is contained in:
parent
445421051c
commit
4ff2d7ef2a
@ -147,6 +147,8 @@ private static ClassLoader initializeDocLoader()
|
||||
|
||||
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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user