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

convert empty string to empty collection or array #54

Merged

Conversation

Mkabaka
Copy link
Member

@Mkabaka Mkabaka commented May 11, 2021

No description provided.

@Mkabaka Mkabaka requested a review from alalag1 May 11, 2021 12:45
Copy link
Member

@alalag1 alalag1 left a comment

Choose a reason for hiding this comment

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

Make ConverterUtils provide a converter with explicit rules

  • convert null to null
  • convert empty string type by type
    • throw an exception if the target type is a primitive type
    • convert to empty Collection or Array

plz do not change the imports with '*'

@alalag1 alalag1 self-requested a review May 14, 2021 02:00
@Mkabaka Mkabaka requested a review from alalag1 May 14, 2021 06:24
@alalag1 alalag1 merged commit a5920d0 into esastack:main May 14, 2021
@Mkabaka Mkabaka deleted the convert_empty_string_to_empty_collection branch May 14, 2021 07:02
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.

Got 400 error when annotating argument with @RequestParam(default value = "")
2 participants