Skip to content

Commit 5d3913f

Browse files
Sushant NadavadeSushant Nadavade
authored andcommitted
CLI improvements are done
1 parent 44c8a26 commit 5d3913f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private RotatingCalipers() {
3535
/**
3636
* Represents a pair of points with their distance.
3737
*/
38-
public static record PointPair(Point p1, Point p2, double distance) {
38+
public record PointPair(Point p1, Point p2, double distance) {
3939
@Override
4040
public String toString() {
4141
return String.format("PointPair(%s, %s, distance=%.2f)", p1, p2, distance);
@@ -45,7 +45,7 @@ public String toString() {
4545
/**
4646
* Represents a rectangle with its area.
4747
*/
48-
public static record Rectangle(Point bottomLeft, Point topRight, double area) {
48+
public record Rectangle(Point bottomLeft, Point topRight, double area) {
4949
@Override
5050
public String toString() {
5151
return String.format("Rectangle(%s, %s, area=%.2f)", bottomLeft, topRight, area);

src/test/java/com/thealgorithms/geometry/RotatingCalipersTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import static org.junit.jupiter.api.Assertions.assertNotNull;
55
import static org.junit.jupiter.api.Assertions.assertThrows;
66
import static org.junit.jupiter.api.Assertions.assertTrue;
7+
78
import java.util.ArrayList;
89
import java.util.Arrays;
910
import java.util.List;

0 commit comments

Comments
 (0)