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

Whitespace is not correctly trimmed when generating configuration properties metadata from records #40593

Closed
philwebb opened this issue May 1, 2024 · 0 comments
Labels
type: bug A general bug
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented May 1, 2024

#29403 recently added support for generating metadata from parameters but we need to refine it to deal with wrapped whitespace.

Currently:

/**
 * Some description.
 *
 * @param foo Imagine this is a long description which
 *            gets wrapped by the formatter for readability
 */
@ConfigurationProperties(“myconfig")
public record MyProperties(String foo) {

Results in

    {
      "name": "myconfig.foo",
      "type": "java.lang.String",
      "description": "Imagine this is a long description which            gets wrapped by the formatter for readability",
      "sourceType": “com.mypkg.MyProperties"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant