Skip to content

Trims newValue and commit in CrudEvent.#92

Open
assadriaz wants to merge 4 commits intomasterfrom
bug-fix-trim-crudEvent-properties
Open

Trims newValue and commit in CrudEvent.#92
assadriaz wants to merge 4 commits intomasterfrom
bug-fix-trim-crudEvent-properties

Conversation

@assadriaz
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
Comment thread src/main/java/org/rutebanken/irkalla/domain/CrudEvent.java Outdated
public Builder newValue(String newValue) {
event.newValue = newValue;
if (newValue !=null && newValue.length() > MAX_STRING_LENGTH) {
LOGGER.warn("Trimming newValue since it is greater than max string length: {}, {}",MAX_STRING_LENGTH, newValue);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe clearer with this template:
"Trimming newValue since it is greater than max string length ({} characters): {}"

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.

2 participants