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

#9734 - added toString to whole model, including Password, PasswordSe… #9810

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

kockas
Copy link
Contributor

@kockas kockas commented Mar 11, 2024

…cretSource and PasswordSource classes

Type of change

  • Bugfix

Description

Implementation of the issue #9734
All classes in the model package and sub-packages now contain toString generated by Lombok's @ToString.
Additionally:

  • each class contains generate hashCode and equals using @EqualsAndHashCode
  • when class has a Parent, both @EqualsAndHashCode and @ToString are using callSuper=true
  • existing toString methods were removed
  • toString is also within classes Password, PasswordSecretSource, PasswordSource as they in fact do not contain secrets
  • class KubernetesVersion is left intact with manual hashCode, equals, and toString

@scholzj scholzj self-requested a review March 11, 2024 14:55
@scholzj scholzj requested a review from ppatierno March 11, 2024 14:56
@scholzj scholzj added this to the 0.41.0 milestone Mar 11, 2024
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

It looks like the scope of the dependnecies changed:

[INFO] --- maven-dependency-plugin:3.3.0:analyze-only (analyze) @ api ---
[WARNING] Unused declared dependencies found:
[WARNING]    com.fasterxml.jackson.core:jackson-core:jar:2.16.1:compile
[WARNING] Non-test scoped test only dependencies found:
[WARNING]    com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.16.1:compile

Can you please update the api/pom.xml accordingly?

…swordSecretSource and PasswordSource classes

Signed-off-by: Slavomir Kocka <slavomir.kocka@gmail.com>
…ml, to be only in test scole

Signed-off-by: Slavomir Kocka <slavomir.kocka@gmail.com>
@scholzj
Copy link
Member

scholzj commented Mar 11, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM and it seems regressions are all green.

Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the PR.

@scholzj scholzj linked an issue Mar 12, 2024 that may be closed by this pull request
@scholzj scholzj merged commit b118e8d into strimzi:main Mar 12, 2024
21 checks passed
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.

Use proper toString() implementation in the API classes
3 participants