A-Streams: Use Streams - #3
Merged
Merged
Conversation
The findTask() method in the TaskList class currently iterates through an ArrayList to find matching tasks. This approach could be simplified using a functional approach with Streams. Let's modify the body of the function to use a functional stream-based approach.
While resolving merge conflicts when merging master branch into branch-A-Streams, some incorrect changes were made to TaskList.java. These incorrect changes are breaking the implementation of MayoBot. Let's make the necessary changes to comply with the version of TaskList in master, along with the main addition of streams.
After making changes and implementing streams wherever applicable, there are checkStyle violations. Resolving checkStyle violations is important for CI workflow to run properly. Let's fix the raised checkStyle violations in the code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the Streams feature of Java in your code, if applicable.