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

Support Element.setPropertyBean #8584

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Support Element.setPropertyBean #8584

merged 2 commits into from
Jun 25, 2020

Conversation

Artur-
Copy link
Member

@Artur- Artur- commented Jun 18, 2020

Fixes #7307

try {
return Json.parse(objectMapper.writeValueAsString(bean));
} catch (JsonProcessingException e) {
throw new RuntimeException("Error converting bean to JSON", e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Define and throw a dedicated exception instead of using a generic one. rule

@vaadin-bot vaadin-bot added +1.0.0 and removed +0.1.0 labels Jun 18, 2020
@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 1 issue

  • MAJOR 1 major

Watch the comments in this conversation to review them.

@vaadin vaadin deleted a comment from joheriks Jun 25, 2020
@vaadin vaadin deleted a comment from Artur- Jun 25, 2020
@Artur- Artur- merged commit 7820bed into master Jun 25, 2020
@Artur- Artur- deleted the element-setpropertybean branch June 25, 2020 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Element.setProperty(String, Object) for any bean
3 participants