mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
Be more specific in comment about rejecting null URL elements
This commit is contained in:
parent
72f6c2bcc7
commit
36fca66c9d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user