-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary methods. #8663
Remove unnecessary methods. #8663
Conversation
Kudos, SonarCloud Quality Gate passed! |
* @see #append(List items) | ||
* @param items {@link PlayQueueItem}s to append | ||
*/ | ||
public synchronized void append(@NonNull final PlayQueueItem... items) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this method was called with no arguments it meant that most code in append
below did nothing except for broadcast(new AppendEvent(0));
. I would rather create a new method called notifyChange() { broadcast(new AppendEvent(0)); }
and call it in place of append(Collections.emptyList()); // Notify change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand, I'll make the change tomorrow.
c2bfcb5
to
6d1c614
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works, thanks
What is it?
Description of the changes in your PR
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence