Skip to content

Remove annimon stream part4#14719

Open
JesseWeinstein wants to merge 39 commits intosignalapp:mainfrom
JesseWeinstein:remove_annimon_stream_part4
Open

Remove annimon stream part4#14719
JesseWeinstein wants to merge 39 commits intosignalapp:mainfrom
JesseWeinstein:remove_annimon_stream_part4

Conversation

@JesseWeinstein
Copy link
Copy Markdown
Contributor

Contributor checklist

  • I am following the Code Style Guidelines
  • I have tested my contribution on these devices:
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

This should only be reviewed once #14718 is merged.

This splits up the Stream.of calls between the array uses and the Collection uses, then converts them both. Then removes the library.

It touches a bunch of files, but it's pretty straightforward.

I can break it up further if desired.

* Converted Stream.of to .stream())
* Inverted .filterNot
* Replaced .toList with .collect(Collectors.toList())

Fixes signalapp#14700
* Replaced .toList with .collect(Collectors.toList())
* Converted non-array calls to Stream.of to .stream())
* Converted non-array calls to Stream.of to .stream())
* Inverted .filterNot
* Replaced .toList with .collect(Collectors.toList())
* Converted Stream.of to .stream())
* Inverted .filterNot
* Replaced .toList with .collect(Collectors.toList())
…since it does weird things with differing types
This needed to be done separately, due to the use of Stream.concat
and use it in two straightforward places
…ed by combining two streams

This should be looked at carefully.
(one of which wasn't needed)

Should be looked at carefully
Should be looked at carefully.
Should be looked at carefully.
It previously would throw NoSuchElementException if there weren't any public keys, now it will throw IllegalStateException. This shouldn't matter.
Copy link
Copy Markdown
Contributor

@jeffrey-signal jeffrey-signal left a comment

Choose a reason for hiding this comment

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

Thanks! Will be in 8.8

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