Skip to content

Conversation

sjhajharia
Copy link
Contributor

This PR aims at cleaning up theconnect:runtime module further by getting rid of some extra code which can be replaced by record and the relevant changes.

@github-actions github-actions bot added triage PRs from the community connect labels Aug 21, 2025
@sjhajharia
Copy link
Contributor Author

Adding @chia7712 as he has been helping with tonnes of reviews in this area.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@sjhajharia thanks for this patch!

", version='" + version + '\'' +
'}';
@JsonProperty("type")
public PluginType type() {
Copy link
Member

Choose a reason for hiding this comment

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

Should it change the type from PluginType to String?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept it as a PluginType as type is that. If we change it to String, we will have to confirm all uses of the same.

Copy link
Member

Choose a reason for hiding this comment

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

Excuse me, the overrided version is totally same to the generated code, so is it necessary to override it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry, I was reading the comment wrong. Yes indeed this code patch is unnecessary. I have updated the same.
Pls re-review!

@github-actions github-actions bot removed needs-attention triage PRs from the community labels Aug 30, 2025
@sjhajharia sjhajharia requested a review from chia7712 September 2, 2025 13:05
public boolean equals(Object obj) {
return PluginDesc.UNDEFINED_VERSION.equals(obj);
}

// Dummy hashCode method to not fail compilation because of equals() method
Copy link
Member

Choose a reason for hiding this comment

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

Could you please keep this comment? Otherwise, the implementation return super.hashCode(); look odd to me, since it's essentially identical to the default implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants