Skip to content

Commit b3f6406

Browse files
committed
Prevent instantiation of ErrorMessage class by making the constructor private
1 parent 5473269 commit b3f6406

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • api-project/src/main/java/org/opendevstack/apiservice/project/exception

api-project/src/main/java/org/opendevstack/apiservice/project/exception/ErrorMessage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ public class ErrorMessage {
55
public static final String NOT_FOUND = "Not Found";
66
public static final String FORBIDDEN = "Forbidden";
77
public static final String BAD_REQUEST = "Bad Request";
8-
9-
public ErrorMessage() {}
8+
9+
private ErrorMessage() {
10+
// prevent instantiation
11+
}
1012
}

0 commit comments

Comments
 (0)