Skip to content

Commit 844dbf8

Browse files
fix: add private constructor to ConvexHull to satisfy HideUtilityClassConstructor Checkstyle rule
1 parent 7867234 commit 844dbf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
* @author Hardvan
2323
*/
2424
public final class ConvexHull {
25+
private ConvexHull() {
26+
throw new AssertionError("Cannot instantiate utility class");
27+
}
28+
2529
private static boolean checkPointOrientation(Point i, Point j, Point k) {
2630
int detK = Point.orientation(i, j, k);
2731
if (detK > 0) {

0 commit comments

Comments
 (0)