Skip to content

[cleanup][broker] Direct get lowest PositionImpl from TreeMap #18279

@lifepuzzlefun

Description

@lifepuzzlefun

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

some interface already return TreeSet but the signature is Set
so the caller will use set.stream().findFirst()
which is unnessary.

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions