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

EPBDS-13715 Upgrade to Groovy 4 #888

Merged
merged 1 commit into from
Apr 14, 2023
Merged

EPBDS-13715 Upgrade to Groovy 4 #888

merged 1 commit into from
Apr 14, 2023

Conversation

mkamalov
Copy link
Contributor

No description provided.

@mkamalov mkamalov requested a review from yurkom April 14, 2023 10:34
.append(" ")
.append(implementationChain);
return description.toString();
return super.generateClassDescription() + " " + IMPLEMENTS + " " + implementationChain;
Copy link
Member

Choose a reason for hiding this comment

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

How many times IMPLEMENTS constant is used? Maybe it is better to inline it?
Also, implementationChain can be prefixed by .append(super.generateClassDescription()).append(" implements ");

@@ -107,7 +107,7 @@ protected Set<String> getDefaultImports() {
}

protected String generateClassDescription() {
return new StringBuilder(CLASS).append(" ").append(getSimpleClassName()).toString();
return CLASS + " " + getSimpleClassName();
Copy link
Member

Choose a reason for hiding this comment

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

The same as above with INTERFACE

@yurkom yurkom merged commit 7a4ad83 into master Apr 14, 2023
@yurkom yurkom deleted the EPBDS-13715 branch April 14, 2023 18:50
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.

None yet

2 participants