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

BeanConverter#convert should use Map keys as the property names #403

Closed
sleberknight opened this issue Nov 4, 2020 · 0 comments · Fixed by #404
Closed

BeanConverter#convert should use Map keys as the property names #403

sleberknight opened this issue Nov 4, 2020 · 0 comments · Fixed by #404
Assignees
Labels
enhancement A request for change or improvement to an existing feature refactoring Code refactoring
Milestone

Comments

@sleberknight
Copy link
Member

sleberknight commented Nov 4, 2020

When the input to BeanConverter#getPropertyList is a Map, it should use only the map's keys as the names of the properties for the target object. Exclusions should still apply, however.

@sleberknight sleberknight added enhancement A request for change or improvement to an existing feature refactoring Code refactoring labels Nov 4, 2020
@sleberknight sleberknight added this to the 0.14.0 milestone Nov 4, 2020
@sleberknight sleberknight self-assigned this Nov 4, 2020
sleberknight added a commit that referenced this issue Nov 4, 2020
* Rename protected getPropertyList to getPropertySet (since it returns
  a Set<String> and saying we return a List is just a bit confusing...)
* Change BeanConverter#getPropertySet so that, when the input is a
  Map, we assume the properties are simply the keys in the Map

Fixes #403
@sleberknight sleberknight changed the title BeanConverter should take Map properties as the property list BeanConverter#convert should use Map keys as the property names Nov 4, 2020
chrisrohr pushed a commit that referenced this issue Nov 4, 2020
* Better Map input handling in BeanConverter#convert

* Rename protected getPropertyList to getPropertySet (since it returns
  a Set<String> and saying we return a List is just a bit confusing...)
* Change BeanConverter#getPropertySet so that, when the input is a
  Map, we assume the properties are simply the keys in the Map

Fixes #403

* * Rename exclusionList property (which is a Set) to just exclusions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for change or improvement to an existing feature refactoring Code refactoring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant