-
Notifications
You must be signed in to change notification settings - Fork 570
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
Handle a field named "result", "other", or "o" #40
Conversation
@@ -1463,6 +1463,9 @@ private void emitMessageHashCode(MessageType messageType) throws IOException { | |||
} else if (hasOnlyOneField(messageType)) { | |||
Field field = messageType.getFields().get(0); | |||
String name = sanitize(field.getName()); | |||
if ("result".equals(name)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One-line me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One liners are for return statements only (and even then I hate them)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a comment explaining why qualification is needed.
LGTM. |
I'll add a comment and also fix the issue with equals() before merging. |
Handle a field named "result", "other", or "o"
👍 |
Fix IllegalStateException when trying to add a header or footer to the CalendarPickerView on Samsung Galaxy Nexus running Android 4.2.2
Properly handle nested types when converting to map.
* commit '860c3a191d9cf30b907ceb02d4f4bb5364348ed7': Add support for encoding Int to Int maps Reorganize methods
Fixes #38.