(Sonar) Fixed finding: "Utility classes should not have public constructors"

This commit is contained in:
pixeebot[bot] 2024-06-07 07:52:26 +00:00 committed by GitHub
parent 32b3cfca41
commit 88338b4dbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,9 @@ import jakarta.servlet.http.HttpServletRequest;
public class UrlUtils { public class UrlUtils {
private UrlUtils() {
}
public static String getOrigin(HttpServletRequest request) { public static String getOrigin(HttpServletRequest request) {
String scheme = request.getScheme(); // http or https String scheme = request.getScheme(); // http or https
String serverName = request.getServerName(); // localhost String serverName = request.getServerName(); // localhost