Commit 985cfd2b authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Simplified temporary list build.

parent c467c9a7
......@@ -17,8 +17,7 @@
package org.orekit.forces.maneuvers.propulsion;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Arrays;
import java.util.List;
import org.hipparchus.CalculusFieldElement;
......@@ -107,10 +106,7 @@ public class BasicConstantThrustPropulsionModel extends AbstractConstantThrustPr
/** {@inheritDoc} */
@Override
public List<ParameterDriver> getParametersDrivers() {
final List<ParameterDriver> drivers = new ArrayList<>(2);
drivers.add(thrustDriver);
drivers.add(flowRateDriver);
return Collections.unmodifiableList(drivers);
return Arrays.asList(thrustDriver, flowRateDriver);
}
/** {@inheritDoc} */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment