Skip to content

Conversation

@anatol-sialitski
Copy link
Contributor

No description provided.

@anatol-sialitski anatol-sialitski linked an issue Nov 7, 2025 that may be closed by this pull request
builder.inlineMixinResolver ) : null;
builder.cmsDescriptor != null && builder.cmsDescriptor.getForm() != null ? new FormJson( builder.cmsDescriptor.getForm(),
builder.localeMessageResolver,
builder.cmsFormFragmentServiceResolver ) : null;

Choose a reason for hiding this comment

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

ℹ️ Codacy found a minor CodeStyle issue: Line is longer than 140 characters (found 149).

The issue identified by the Checkstyle linter is that the line of code exceeds the maximum allowed length of 140 characters, making it difficult to read and maintain. To resolve this, we can break the line into two parts while maintaining the logical grouping of parameters.

Here's a code suggestion to fix the issue by splitting the line:

Suggested change
builder.cmsFormFragmentServiceResolver ) : null;
builder.cmsFormFragmentServiceResolver )

This comment was generated by an experimental AI tool.



public FormJson( final Form form, final LocaleMessageResolver localeMessageResolver, final InlineMixinResolver inlineMixinResolver )
public FormJson( final Form form, final LocaleMessageResolver localeMessageResolver, final CmsFormFragmentServiceResolver inlineMixinResolver )

Choose a reason for hiding this comment

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

ℹ️ Codacy found a minor CodeStyle issue: Line is longer than 140 characters (found 147).

The issue reported by the Checkstyle linter indicates that the line defining the constructor for the FormJson class exceeds the maximum allowed length of 140 characters, which can make the code harder to read and maintain.

To address this issue, we can break the constructor parameters into multiple lines for better readability while keeping it within the character limit.

Here's the suggested code change:

    public FormJson(final Form form, final LocaleMessageResolver localeMessageResolver, 
                    final CmsFormFragmentServiceResolver inlineMixinResolver)

This comment was generated by an experimental AI tool.

Copy link
Contributor

Choose a reason for hiding this comment

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

Delete

propertyValue = this.localeMessageResolver.localizeMessage( attribute.getValue(), propertyValue );
}
json.put( "@" + attribute.getKey(), attribute.getValue() );
private Map<String, Object> toJson( final GenericValue property )
Copy link
Contributor

Choose a reason for hiding this comment

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

Generic value can already return raw value perfectly serializable

{
private final CmsFormFragmentService cmsFormFragmentService;

public CmsFormFragmentServiceResolver( final CmsFormFragmentService cmsFormFragmentService )
Copy link
Contributor

Choose a reason for hiding this comment

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

Users app doesn't need to deal with fragments

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.

Upgrade to the latest version of XP 8

3 participants