DATACMNS-1768 - Polishing.

Reduce test visibility. Remove forEach detour through stream().
This commit is contained in:
Mark Paluch
2020-07-14 09:39:48 +02:00
parent ebcea509b8
commit 0c37484b19
2 changed files with 6 additions and 5 deletions

View File

@@ -74,6 +74,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
* @param bean must not be {@literal null}.
* @param accessorFunction must not be {@literal null}.
* @param instantiators must not be {@literal null}.
* @since 2.4
*/
public InstantiationAwarePropertyAccessor(T bean, Function<T, PersistentPropertyAccessor<T>> accessorFunction,
EntityInstantiators instantiators) {
@@ -117,7 +118,7 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
String.format(NO_CONSTRUCTOR_PARAMETER, property.getName(), constructor.getConstructor()));
}
constructor.getParameters().stream().forEach(it -> {
constructor.getParameters().forEach(it -> {
if (it.getName() == null) {
throw new IllegalStateException(