Use "list" instead of "queue" when referring to expandedPath which is processed FIFO and as such is not a queue

This commit is contained in:
Eirik Bjorsnos 2026-01-21 11:15:57 +01:00
parent 6d21f04922
commit d79624429e

View File

@ -107,7 +107,7 @@ public class URLClassPath {
*/
private int nextURL = 0;
/* Queue of URLs found during expansion of JAR 'Class-Path' attributes
/* List of URLs found during expansion of JAR 'Class-Path' attributes
* Access is guarded by a monitor on 'searchPath'
*/
private final ArrayList<URL> expandedPath = new ArrayList<>();
@ -483,7 +483,7 @@ public class URLClassPath {
}
/*
* Adds the specified URLs to the queue of 'Class-Path' expanded URLs
* Adds the specified URLs to the list of 'Class-Path' expanded URLs
*/
private void addExpandedPaths(URL[] urls) {
synchronized (searchPath) {