DATACMNS-1768 - Polishing.
Reduce test visibility. Remove forEach detour through stream().
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user