Polishing

This commit is contained in:
Juergen Hoeller 2023-07-24 11:26:48 +02:00
parent 4a319c3c33
commit b9ba0fc572
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public abstract class DataAccessUtils {
if (resultList.size() > 1) {
throw new IncorrectResultSizeDataAccessException(1);
}
return resultList.isEmpty() ? null : resultList.get(0);
return (!resultList.isEmpty() ? resultList.get(0) : null);
}
}