-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Labels
annotateIssue concerns annotate pluginIssue concerns annotate pluginannoxIssue concerns annoxIssue concerns annoxenhancement
Milestone
Description
Given an annotation that takes a value as a constructor (ie Jackson's JsonRootName):
<jaxb:bindings node="xs:complexType[@name='DataModelType']">
<annox:annotate>
<annox:annotate annox:class="com.fasterxml.jackson.annotation.JsonRootName">DataModelType<annox:annotate>
</annox:annotate>
...
if the bindings file gets formatted to wrap the line (ie editorconfig), the resulting annotation will contain the line wrap
Formatted:
<jaxb:bindings node="xs:complexType[@name='DataModelType']">
<annox:annotate>
<annox:annotate annox:class="com.fasterxml.jackson.annotation.JsonRootName">
DataModelType<annox:annotate>
</annox:annotate>
...
Output:
@JsonRootName("\n DataModelType")
Fix: The annotation plugin should trim values to remove whitespace by default
laurentschoelens
Metadata
Metadata
Assignees
Labels
annotateIssue concerns annotate pluginIssue concerns annotate pluginannoxIssue concerns annoxIssue concerns annoxenhancement