-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 calls to java stream() #37539
remove calls to java stream() #37539
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 1 Ignored Deployment
|
e9c6e0b
to
8e1fa10
Compare
51f0f84
to
6f29c47
Compare
@@ -144,13 +144,8 @@ class SshBastionContainer : AutoCloseable { | |||
*/ | |||
fun getInnerContainerAddress(container: Container<*>): ImmutablePair<String, Int> { | |||
return ImmutablePair.of( | |||
container.containerInfo.networkSettings.networks.entries | |||
.stream() | |||
.findFirst() |
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.
findFirst().get().value would throw an exception if the stream is empty. first() throws an exception if the stream is empty.
6f29c47
to
7214dad
Compare
8e1fa10
to
94b3f5f
Compare
7214dad
to
7c8644f
Compare
7c8644f
to
871b988
Compare
94b3f5f
to
f4993cd
Compare
871b988
to
741c4e0
Compare
f4993cd
to
40ec450
Compare
741c4e0
to
c973ec7
Compare
40ec450
to
dff0e27
Compare
c973ec7
to
ce051da
Compare
dff0e27
to
f511458
Compare
ce051da
to
cf6216b
Compare
f511458
to
bc2e1f5
Compare
cf6216b
to
bc2ce57
Compare
bc2e1f5
to
e9bd2b1
Compare
bc2ce57
to
7b8866f
Compare
e9bd2b1
to
b3838ee
Compare
b3838ee
to
2ba1799
Compare
6c67ee9
to
2134e41
Compare
2ba1799
to
e80c347
Compare
2134e41
to
3c1eed3
Compare
e80c347
to
c870a2c
Compare
e2be9c5
to
86bc96e
Compare
c870a2c
to
06355c7
Compare
86bc96e
to
f759d9a
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.
rubberstamping this :P I only reviewed the first 10ish files
) | ||
}, | ||
), | ||
streamNames.associateWith { streamDescriptor: StreamDescriptor -> |
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.
ooh, TIL associateWith
(i'm immediately switching to associate
here but it's still cool!)
Merge activity
|
f759d9a
to
ded3aff
Compare
What
How
Review guide
User Impact
Can this PR be safely reverted and rolled back?