Skip to content

Commit 237216d

Browse files
committed
Refactor method signature to use array instead of varargs
1 parent de82ed4 commit 237216d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: wpimath/src/main/java/edu/wpi/first/math/kinematics/SwerveDriveKinematics.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public SwerveModuleState[] toWheelSpeeds(ChassisSpeeds chassisSpeeds) {
203203
* @return The resulting chassis speed.
204204
*/
205205
@Override
206-
public ChassisSpeeds toChassisSpeeds(SwerveModuleState... moduleStates) {
206+
public ChassisSpeeds toChassisSpeeds(SwerveModuleState[] moduleStates) {
207207
if (moduleStates.length != m_numModules) {
208208
throw new IllegalArgumentException(
209209
"Number of modules is not consistent with number of module locations provided in "

0 commit comments

Comments
 (0)