Skip to content

Commit 03eda2c

Browse files
committed
fix: change list to collection
1 parent 70e6f5f commit 03eda2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/thealgorithms/geometry/MidpointEllipse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.geometry;
22

33
import java.util.ArrayList;
4+
import java.util.Collection;
45
import java.util.List;
56

67
/**
@@ -121,7 +122,7 @@ private static void computeEllipsePoints(List<int[]> points, int centerX, int ce
121122
* @param x the x-coordinate relative to the center
122123
* @param y the y-coordinate relative to the center
123124
*/
124-
private static void addEllipsePoints(List<int[]> points, int centerX, int centerY, int x, int y) {
125+
private static void addEllipsePoints(Collection<int[]> points, int centerX, int centerY, int x, int y) {
125126
points.add(new int[] {centerX + x, centerY + y});
126127
points.add(new int[] {centerX - x, centerY + y});
127128
points.add(new int[] {centerX + x, centerY - y});

0 commit comments

Comments
 (0)