Skip to content

Commit 3fea091

Browse files
Polish isEmpty usage
1 parent 9b82562 commit 3fea091

File tree

1 file changed

+4
-4
lines changed
  • spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion

1 file changed

+4
-4
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/DbAction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public String toString() {
209209
* Note that deletes for contained entities that reference the root are to be represented by separate
210210
* {@link DbAction}s.
211211
* </p>
212-
*
212+
*
213213
* @param <T> type of the entity for which this represents a database interaction.
214214
*/
215215
final class DeleteRoot<T> implements DbAction<T> {
@@ -274,7 +274,7 @@ public String toString() {
274274
* Note that deletes for contained entities that reference the root are to be represented by separate
275275
* {@link DbAction}s.
276276
* </p>
277-
*
277+
*
278278
* @param <T> type of the entity for which this represents a database interaction.
279279
*/
280280
final class DeleteAllRoot<T> implements DbAction<T> {
@@ -467,7 +467,7 @@ interface WithDependingOn<T> extends WithPropertyPath<T>, WithEntity<T> {
467467
* <p>
468468
* Values come from parent entities but one might also add values manually.
469469
* </p>
470-
*
470+
*
471471
* @return guaranteed to be not {@code null}.
472472
*/
473473
Map<PersistentPropertyPath<RelationalPersistentProperty>, Object> getQualifiers();
@@ -479,7 +479,7 @@ interface WithDependingOn<T> extends WithPropertyPath<T>, WithEntity<T> {
479479
default Pair<PersistentPropertyPath<RelationalPersistentProperty>, Object> getQualifier() {
480480

481481
Map<PersistentPropertyPath<RelationalPersistentProperty>, Object> qualifiers = getQualifiers();
482-
if (qualifiers.size() == 0)
482+
if (qualifiers.isEmpty())
483483
return null;
484484

485485
if (qualifiers.size() > 1) {

0 commit comments

Comments
 (0)