Skip to content

Incorrect behavior of SimpleKeyValueRepository.existsById(…) due to changes with Optional [DATAKV-186] #163

Closed
@spring-projects-issues

Description

@spring-projects-issues

Eugene Nikiforov opened DATAKV-186 and commented

There were several changes connected to Optional return statement for findById method. It affects existsById method, cause it's implementation is not currently correct

@Override
public boolean existsById(ID id) {
	return findById(id) != null;
} 

Affects: 2.0 M4 (Kay)

Referenced from: pull request #24, and commits 8f5fa59, c5e0d1a

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions