DATACMNS-1101 - Replace ArrayList indirections in ReflectionEntityInstantiator/PreferredConstructor.

Iterate over simple ArrayList and construct array of params instead of copying elements between multiple Lists.
This commit is contained in:
Mark Paluch
2017-06-27 18:27:15 +02:00
committed by Oliver Gierke
parent b2ce4b8f1b
commit 6495a50df7
2 changed files with 9 additions and 12 deletions

View File

@@ -29,7 +29,6 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.util.Lazy;
import org.springframework.data.util.Streamable;
import org.springframework.data.util.TypeInformation;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;
@@ -85,8 +84,8 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
*
* @return
*/
public Streamable<Parameter<Object, P>> getParameters() {
return Streamable.of(parameters);
public List<Parameter<Object, P>> getParameters() {
return parameters;
}
/**