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

Fix setter methods in Log comment trait #93

Merged
merged 5 commits into from May 31, 2020
Merged

Fix setter methods in Log comment trait #93

merged 5 commits into from May 31, 2020

Conversation

baymac
Copy link
Member

@baymac baymac commented May 26, 2020

Log comment trait's fields were not final so the object values and the serialised values were different.

Update: The databoundsetter methods were not properly named.

Copy link
Member

@jetersen jetersen left a comment

Choose a reason for hiding this comment

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

To prevent potential data loss please revert the field rename.
The only problem I see with the code was the getter.
I suspect everything did actually work apart from the UI updating.

Comment on lines 41 to 42
this.sudoUser = sudoUser;
}
Copy link
Member

Choose a reason for hiding this comment

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

indents off

Suggested change
this.sudoUser = sudoUser;
}
this.sudoUser = sudoUser;
}

@@ -15,7 +15,7 @@
@NonNull
private String sudoUser = "";

private boolean logSuccess = false;
private boolean logSuccessOnly;
Copy link
Member

Choose a reason for hiding this comment

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

Revert the rename as you only needed to fix the getter actually.

@baymac
Copy link
Member Author

baymac commented May 27, 2020

@jetersen Thanks for noting that. I almost didn't consider data loss. 😓

@baymac baymac changed the title Make fields of log comment trait final Fix setter methods in Log comment trait May 27, 2020
@baymac baymac merged commit 7acf987 into master May 31, 2020
@baymac baymac deleted the fix/log-comment branch May 31, 2020 12:23
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.

None yet

3 participants