Skip to content

Commit 3018106

Browse files
committed
Make Search2DMatrix final (fix checkstyle)
1 parent 36ef64a commit 3018106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/matrix/Search2DMatrix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* Search a 2D Matrix.
55
* Reference: https://leetcode.com/problems/search-a-2d-matrix/
66
*/
7-
public class Search2DMatrix {
7+
public final class Search2DMatrix {
88

9-
// Private constructor to satisfy Checkstyle utility class rule
9+
// Private constructor for utility class
1010
private Search2DMatrix() {
1111
throw new UnsupportedOperationException("Utility class");
1212
}

0 commit comments

Comments
 (0)