Skip to content

Annotate Queue, Deque, and BlockingDeque peek methods with @Pure - #137

Merged
wmdietl merged 2 commits into
masterfrom
queue-peek-pure
Aug 31, 2026
Merged

Annotate Queue, Deque, and BlockingDeque peek methods with @Pure#137
wmdietl merged 2 commits into
masterfrom
queue-peek-pure

Conversation

@wmdietl

@wmdietl wmdietl commented Aug 31, 2026

Copy link
Copy Markdown
Member

Annotate Queue.peek(), Deque.peekFirst(), Deque.peekLast(), Deque.peek(), and BlockingDeque.peek() with @Pure (and @GuardSatisfied).

Concrete implementations in java.util and java.util.concurrent (such as ArrayDeque, LinkedList, PriorityQueue, ConcurrentLinkedQueue, LinkedBlockingQueue, etc.) already had @Pure annotations; this adds the annotations to the interface declarations.

Merge before eisop/checker-framework#1603.

Copilot AI lite review requested due to automatic review settings August 31, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@wmdietl wmdietl changed the title Annotate Queue, Deque, and BlockingDeque peek methods with @Pure Annotate Queue, Deque, and BlockingDeque peek methods with @Pure Aug 31, 2026
@wmdietl
wmdietl merged commit 3bd57ab into master Aug 31, 2026
16 checks passed
@wmdietl
wmdietl deleted the queue-peek-pure branch August 31, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants