Be more specific in comment about rejecting null URL elements

This commit is contained in:
Eirik Bjorsnos 2026-01-26 14:42:19 +01:00
parent 72f6c2bcc7
commit 36fca66c9d

View File

@ -136,7 +136,7 @@ public class URLClassPath {
*/
public URLClassPath(URL[] urls,
URLStreamHandlerFactory factory) {
// Reject null URLs
// Reject null URL array or any null element in the array
this.searchPath = new ArrayList<>(List.of(urls));
if (factory != null) {