Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Move some calls onto QueueFile directly. #139

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

NightlyNexus
Copy link
Contributor

Kind of a useless change. Feel free to close.

@@ -49,7 +49,7 @@ public boolean isEmpty() {
* If the queue's {@link #size()} is less than {@code max} then only {@link #size()} entries
* are read.
*/
public List<T> peek(int max) throws IOException {
public final List<T> peek(int max) throws IOException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think both of these should stay non-final since it's possible to provide more efficient implementations in subclasses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, cool, I wasn't sure. 👍

@JakeWharton JakeWharton merged commit 3ce63d0 into square:master Mar 2, 2017
@NightlyNexus NightlyNexus deleted the eric/final branch March 2, 2017 01:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants