Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
Signed-off-by: Mark-Oliver Reiser <mark-oliver.reiser@numberfour.eu>
  • Loading branch information
mor-n4 committed Jun 20, 2019
1 parent 6f6b8bf commit 59b5690
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -172,6 +172,9 @@ public static URL[] getClassPathURLs(ClassLoader classLoader) {
if (entry == null || entry.length() == 0) {
continue;
}
// Compare the following to the implementation of method
// jdk.internal.loader.URLClassPath#toFileURL(String) in
// JDK9 and later:
try {
File entryFile = new File(entry).getCanonicalFile();
URL entryURL = entryFile.toPath().toUri().toURL();
Expand Down

0 comments on commit 59b5690

Please sign in to comment.