Skip to content

Commit

Permalink
Merge pull request #1397 from Stirling-Tools/pixeebot/drip-2024-06-07…
Browse files Browse the repository at this point in the history
…-sonar-java/avoid-implicit-public-constructor-s1118

(Sonar) Fixed finding: "Utility classes should not have public constructors"
  • Loading branch information
Frooodle authored Jun 7, 2024
2 parents 32b3cfc + 88338b4 commit 4f5b19e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/stirling/software/SPDF/utils/UrlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

public class UrlUtils {

private UrlUtils() {
}

public static String getOrigin(HttpServletRequest request) {
String scheme = request.getScheme(); // http or https
String serverName = request.getServerName(); // localhost
Expand Down

0 comments on commit 4f5b19e

Please sign in to comment.