Skip to content

DATAKV - 186 : Incorrect behavior of SimpleKeyValueRepository.existsById(…) due to changes with Optional #24

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

Closed
wants to merge 1 commit into from

Conversation

EugeneNik
Copy link
Contributor

Fix incorrect null lookup on existsById method. Provide test for different method behavior on findById's results

@EugeneNik EugeneNik changed the title DATAKV - 186 : Incorrect behaviour of "existsById" due to changes with Optional DATAKV - 186 : Incorrect behavior of SimpleKeyValueRepository.existsById(…) due to changes with Optional Jul 20, 2017
christophstrobl pushed a commit that referenced this pull request Jul 20, 2017
…dById(…) results properly.

ExistsById now evaluates Optional.isPresent() instead of comparing findById result to null.

Original Pull Request: #24
christophstrobl added a commit that referenced this pull request Jul 20, 2017
Add missing author information and split test.

Original Pull Request: #24
@christophstrobl
Copy link
Member

Thanks @EugeneNik. That's now merged to master.

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