DATACMNS-925 - Polishing.
Moved an assignment back to its original place to create instance state as early as possible. Original pull request: #180.
This commit is contained in:
@@ -98,12 +98,12 @@ public abstract class Parameters<S extends Parameters<S, T>, T extends Parameter
|
||||
*/
|
||||
protected Parameters(List<T> originals) {
|
||||
|
||||
this.parameters = new ArrayList<T>(originals.size());
|
||||
|
||||
int pageableIndexTemp = -1;
|
||||
int sortIndexTemp = -1;
|
||||
int dynamicProjectionTemp = -1;
|
||||
|
||||
this.parameters = new ArrayList<T>(originals.size());
|
||||
|
||||
for (int i = 0; i < originals.size(); i++) {
|
||||
|
||||
T original = originals.get(i);
|
||||
|
||||
Reference in New Issue
Block a user