Skip to content

Fix wrong String comparison in EnclosedJsonRecordReader#88

Merged
randallwhitman merged 2 commits intoEsri:masterfrom
komamitsu:fix_str_equal
Aug 11, 2015
Merged

Fix wrong String comparison in EnclosedJsonRecordReader#88
randallwhitman merged 2 commits intoEsri:masterfrom
komamitsu:fix_str_equal

Conversation

@komamitsu
Copy link
Copy Markdown
Contributor

parser.getCurrentName() should be compared using String#equals.

@randallwhitman
Copy link
Copy Markdown
Contributor

By inspection/review, this patch looks correct.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch - will getCurrentName ever be null in this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. I added null check.

@climbage
Copy link
Copy Markdown
Member

@randallwhitman Looks good to me - merge?

@randallwhitman
Copy link
Copy Markdown
Contributor

Passes code review. Do we have any tests to run before merge? @climbage @smambrose

@randallwhitman
Copy link
Copy Markdown
Contributor

Thanks @komamitsu !

randallwhitman added a commit that referenced this pull request Aug 11, 2015
Fix wrong String comparison in EnclosedJsonRecordReader
@randallwhitman randallwhitman merged commit 106b1a7 into Esri:master Aug 11, 2015
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.

3 participants