Skip to content
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

Replace Collections.sort(list) with list.sort() to support earlier jdk-version than jdk-1.8.0_20 #24

Merged
merged 1 commit into from
Sep 19, 2016

Conversation

rdhabalia
Copy link
Contributor

Motivation

jdk version before 1.8.0_20 calls set() on iterator while performing Collections.sort() which throws UnsupportedOperationException. So, replacing Collections.sort() with list.sort()

Modifications

Replacing Collections.sort() with list.sort()

Result

It will fix java.lang.UnsupportedOperationException while sorting list.

@yahoocla
Copy link

CLA is valid!

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

Looks good

@merlimat merlimat added this to the 1.15 milestone Sep 19, 2016
@merlimat merlimat merged commit d93b233 into apache:master Sep 19, 2016
@rdhabalia rdhabalia deleted the list_sort branch September 29, 2016 01:04
sijie pushed a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
* Create pulsar-functions module (#1)

* Create pulsar-functions module

* rename `sdk` package to `api`

* Added the first cut of the Java interface for Pulsar functions (#2)

* Fix void type handling
massakam pushed a commit to massakam/pulsar that referenced this pull request Aug 6, 2020
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
…ucer

[issue:23]Use golangci-lint to format the code for the master branch
run golangci-lint and format the code for the master branch.
hangc0276 referenced this pull request in hangc0276/pulsar May 26, 2021
* Kafka coordinator service (part 1): Add GroupMetadata and MemberMetadata

*Motivation*

Import Kafka coordinator implementation. This is the first part to introduce
GroupMetadata and MemberMetadata.

* Group coordindator part 2

* Implement Group Coordinator

* Port Kafka timer classes

*Motivation*

Need to port Kafka's coordinator algorithm. It requires using Kafka's timer and deplayed operations.

* Port delayed operations implementation from Kafka

* Fix checkstyle and findbugs

* Add GroupMetadataManagerTest

* Add offset metadata to group metadata

*Motivation*

Add the support for offsets
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.

3 participants