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

Polishing in Asciidoctor rendering #608

Closed
wants to merge 3 commits into from
Closed

Conversation

lukasdo
Copy link
Contributor

@lukasdo lukasdo commented May 19, 2024

StringUtils.hasText already includes non null check so the additional check is not needed.
Parsing the module in renderConfigurationProperties isn't needed anymore because the ModuleProperty list is already module specific.

@@ -208,16 +208,14 @@ public String renderConfigurationProperties(ApplicationModule module, List<Modul

var defaultValue = it.defaultValue();

if (defaultValue != null && StringUtils.hasText(defaultValue)) {
Copy link
Member

Choose a reason for hiding this comment

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

I've kept the additional, explicit checks, as only those cause the null analysis in Eclipse to realize that defaultValue is not null. Simply passing it to StringUtil.hasText(…) doesn't do the trick and the compiler would now mark the invocation of toInlineCode(…) as problematic as the method expects a non-null value.

odrotbohm pushed a commit that referenced this pull request May 22, 2024
@odrotbohm
Copy link
Member

That's merged, thanks!

@odrotbohm odrotbohm closed this May 22, 2024
@odrotbohm odrotbohm self-assigned this May 22, 2024
@odrotbohm odrotbohm changed the title Polishing Asciidoctor Polishing in Asciidoctor rendering May 22, 2024
@odrotbohm odrotbohm added this to the 1.2 milestone May 22, 2024
@odrotbohm odrotbohm added in: reference documentation Our own reference documentation type: improvement Minor improvements type: task General tasks and removed type: improvement Minor improvements labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: reference documentation Our own reference documentation type: task General tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants