Skip to content

Commit

Permalink
Added private constructor to prevent instantiation of JsonUtil class
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Grigorov committed Aug 15, 2024
1 parent d88d09d commit 03c24e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/limechain/utils/json/JsonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

public class JsonUtil {

// Prevents instantiation
private JsonUtil() {}

public static Object parseJson(String jsonString) {
return new JsonParser(jsonString).parse();
}
Expand Down

0 comments on commit 03c24e2

Please sign in to comment.