Skip to content

Commit d53ba28

Browse files
committed
Fix: mark utility classes as final for Checkstyle compliance
1 parent a3c90f6 commit d53ba28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/compression/ArithmeticCoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Reference: https://en.wikipedia.org/wiki/Arithmetic_coding
88
*/
99

10-
public class ArithmeticCoding {
10+
public final class ArithmeticCoding {
1111

1212
private ArithmeticCoding() {
1313
throw new UnsupportedOperationException("Utility class");

src/main/java/com/thealgorithms/compression/LZW.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Reference: https://en.wikipedia.org/wiki/Lempel–Ziv–Welch
1111
*/
1212

13-
public class LZW {
13+
public final class LZW {
1414

1515
private LZW() {
1616
throw new UnsupportedOperationException("Utility class");

0 commit comments

Comments
 (0)