This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit a9e899fefdd2c4ef6d4ab77fe0df0bf46a8d350c Author: Gary Gregory <[email protected]> AuthorDate: Fri Jan 9 15:46:29 2026 -0500 Javadoc --- src/main/java/org/apache/bcel/util/ClassQueue.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/org/apache/bcel/util/ClassQueue.java b/src/main/java/org/apache/bcel/util/ClassQueue.java index 5db785e9..95ddb133 100644 --- a/src/main/java/org/apache/bcel/util/ClassQueue.java +++ b/src/main/java/org/apache/bcel/util/ClassQueue.java @@ -33,14 +33,29 @@ public class ClassQueue { @Deprecated protected LinkedList<JavaClass> vec = new LinkedList<>(); // TODO not used externally + /** + * Removes and returns the first JavaClass from the queue. + * + * @return the first JavaClass from the queue. + */ public JavaClass dequeue() { return vec.removeFirst(); } + /** + * Checks if the queue is empty. + * + * @return true if the queue is empty. + */ public boolean empty() { return vec.isEmpty(); } + /** + * Adds a JavaClass to the end of the queue. + * + * @param clazz the JavaClass to add. + */ public void enqueue(final JavaClass clazz) { vec.addLast(clazz); }
