[
https://issues.apache.org/jira/browse/KAFKA-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15932859#comment-15932859
]
ASF GitHub Bot commented on KAFKA-4921:
---------------------------------------
GitHub user backender opened a pull request:
https://github.com/apache/kafka/pull/2712
KAFKA-4921: AssignedPartition implements equals
Solves: [KAFKA-4921](https://issues.apache.org/jira/browse/KAFKA-4921)
Bug type EQ_COMPARETO_USE_OBJECT_EQUALS (click for details)
In class
org.apache.kafka.streams.processor.internals.StreamPartitionAssignor$AssignedPartition
In method
org.apache.kafka.streams.processor.internals.StreamPartitionAssignor$AssignedPartition.compareTo(StreamPartitionAssignor$AssignedPartition)
At StreamPartitionAssignor.java:[line 75]
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/delftswa2017/kafka fix-KAFKA-4921
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2712.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2712
----
----
> AssignedPartition should implement equals
> -----------------------------------------
>
> Key: KAFKA-4921
> URL: https://issues.apache.org/jira/browse/KAFKA-4921
> Project: Kafka
> Issue Type: Improvement
> Components: streams
> Reporter: Marc Juchli
> Priority: Minor
>
> We ran FundBug, which resulted in the "Bad practice warning":
>
> Bug type EQ_COMPARETO_USE_OBJECT_EQUALS (click for details)
> In class
> org.apache.kafka.streams.processor.internals.StreamPartitionAssignor$AssignedPartition
> In method
> org.apache.kafka.streams.processor.internals.StreamPartitionAssignor$AssignedPartition.compareTo(StreamPartitionAssignor$AssignedPartition)
> At StreamPartitionAssignor.java:[line 75]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)