@@ -36,8 +36,8 @@ public interface CrudRepository<T, ID> extends Repository<T, ID> {
3636 * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the
3737 * entity instance completely.
3838 *
39- * @param entity must not be {@literal null}.
40- * @return the saved entity; will never be {@literal null} .
39+ * @param entity the entity to save, must not be {@literal null}.
40+ * @return the saved entity.
4141 * @throws IllegalArgumentException in case the given {@literal entity} is {@literal null}.
4242 * @throws OptimisticLockingFailureException when the entity uses optimistic locking and has a version attribute with
4343 * a different value from that found in the persistence store. Also thrown if the entity is assumed to be
@@ -49,8 +49,8 @@ public interface CrudRepository<T, ID> extends Repository<T, ID> {
4949 * Saves all given entities.
5050 *
5151 * @param entities must not be {@literal null} nor must it contain {@literal null}.
52- * @return the saved entities; will never be {@literal null} . The returned {@literal Iterable} will have the same size
53- * as the {@literal Iterable} passed as an argument.
52+ * @return the saved entities. The returned {@literal Iterable} will have the same size as the {@literal Iterable}
53+ * passed as an argument.
5454 * @throws IllegalArgumentException in case the given {@link Iterable entities} or one of its entities is
5555 * {@literal null}.
5656 * @throws OptimisticLockingFailureException when at least one entity uses optimistic locking and has a version
@@ -92,8 +92,7 @@ public interface CrudRepository<T, ID> extends Repository<T, ID> {
9292 * Note that the order of elements in the result is not guaranteed.
9393 *
9494 * @param ids must not be {@literal null} nor contain any {@literal null} values.
95- * @return guaranteed to be not {@literal null}. The size can be equal or less than the number of given
96- * {@literal ids}.
95+ * @return iterable of found entities. The size can be equal or less than the number of given {@literal ids}.
9796 * @throws IllegalArgumentException in case the given {@link Iterable ids} or one of its items is {@literal null}.
9897 */
9998 Iterable <T > findAllById (Iterable <ID > ids );
0 commit comments