-
Notifications
You must be signed in to change notification settings - Fork 3
Upgrade to the latest version of XP 8 #2427 #2428
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
base: master
Are you sure you want to change the base?
Conversation
| builder.inlineMixinResolver ) : null; | ||
| builder.cmsDescriptor != null && builder.cmsDescriptor.getForm() != null ? new FormJson( builder.cmsDescriptor.getForm(), | ||
| builder.localeMessageResolver, | ||
| builder.cmsFormFragmentServiceResolver ) : null; |
There was a problem hiding this comment.
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:
| 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 ) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ) |
There was a problem hiding this comment.
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 ) |
There was a problem hiding this comment.
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
No description provided.