Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Nov 22, 2023
1 parent 88a791e commit 5acf47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/mail/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -983,13 +983,13 @@ public void load(InputStream is) throws IOException {
} catch (SecurityException ex) {
}


//Fetch classloader of given class, falling back to others if needed.
ClassLoader gcl;
ClassLoader[] loaders = getClassLoaders(cl, Thread.class, System.class);
if (loaders.length != 0) {
gcl = loaders[0];
} else {
gcl = getContextClassLoader();
gcl = getContextClassLoader(); //Fail safe
}

// next, add all the non-default services
Expand Down

0 comments on commit 5acf47b

Please sign in to comment.