Skip to content

Commit

Permalink
pass interfaces instead of implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Jun 23, 2024
1 parent 86f184d commit 50facdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.jetbrains.annotations.Contract;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.OptionalDouble;

@Getter
Expand All @@ -33,7 +33,7 @@ public class BezierSpline {
private final BezierSplineSegment[] segments;
private final double curveLength;

public BezierSpline(LinkedList<Vector> curve) {
public BezierSpline(List<Vector> curve) {
this.knots = curve.toArray(new Vector[0]);
this.segments = new BezierSplineSegment[knots.length - 1];
for (var segment = 0; segment < knots.length - 1; segment++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Component[] getDescription(Audience audience) {
return provider.bundle().components(audience, "brush.description.paint");
}

private static final HashMap<UUID, List<Location>> selectedPoints = new HashMap<>();
private static final Map<UUID, List<Location>> selectedPoints = new HashMap<>();

@Override
public void paint(Location target, Player player, BrushSettings brushSettings) {
Expand Down

0 comments on commit 50facdf

Please sign in to comment.