Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 71e222e

Browse files
author
Thibault Falque
committed
add private constructor
1 parent f288b3e commit 71e222e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/main/java/fr/univartois/sonargo/coverage/FactoryLine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
public class FactoryLine {
44
private static int line = 1;
55

6+
private FactoryLine() {
7+
throw new IllegalStateException("Utility class");
8+
}
9+
610
public static void init() {
711
line = 1;
812
}

src/main/java/fr/univartois/sonargo/coverage/LinePredicate.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ public class LinePredicate {
55
private static boolean commentFound = false;
66
private static boolean typeFound = false;
77

8+
private LinePredicate() {
9+
throw new IllegalStateException("Utility class");
10+
}
11+
812
public static void init() {
913
funcFound = false;
1014
commentFound = false;

0 commit comments

Comments
 (0)