spring-projects / spring-data-jpa

Simplifies the development of creating a JPA-based data access layer.
https://spring.io/projects/spring-data-jpa/
Apache License 2.0
2.98k stars 1.41k forks source link

Use `Assert.state` improve code readability #3442

Closed dukbong closed 5 months ago

dukbong commented 5 months ago

This PR is expected to improve code readability by using the Assert.state() method.

mp911de commented 5 months ago

Thank you for your contribution. That's merged, fixed, polished, and backported now.

Assert method usage triggers exceptions if the condition evaluates to false. That has required to flip the condition. Please mind running tests/the build before submitting a pull request.

dukbong commented 5 months ago

Thank you for your contribution. That's merged, fixed, polished, and backported now.

I'm so sorry.... I will make testing a habit to avoid such incidents in the future.....