From d79624429e270cb50ef43ae24e23cd3ea15d9a74 Mon Sep 17 00:00:00 2001 From: Eirik Bjorsnos Date: Wed, 21 Jan 2026 11:15:57 +0100 Subject: [PATCH] Use "list" instead of "queue" when referring to expandedPath which is processed FIFO and as such is not a queue --- .../share/classes/jdk/internal/loader/URLClassPath.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java b/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java index 000fbee0d89..e4b3ee225be 100644 --- a/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java +++ b/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java @@ -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 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) {