From 75b497a163a30c929f171ec95606d23489bdb97a Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 26 Nov 2022 20:23:08 +0100 Subject: [PATCH] Add private constructor to SongodaCoreConstants to hide implicit one The utility class only has static members - Nothing to gain from instantiating it other than confusion --- Core/src/main/java/com/songoda/core/SongodaCoreConstants.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/com/songoda/core/SongodaCoreConstants.java b/Core/src/main/java/com/songoda/core/SongodaCoreConstants.java index c53f2313..b8c5bfea 100644 --- a/Core/src/main/java/com/songoda/core/SongodaCoreConstants.java +++ b/Core/src/main/java/com/songoda/core/SongodaCoreConstants.java @@ -6,6 +6,10 @@ package com.songoda.core; * that needs to be inside the final jar (might get lost when this lib is shaded into other projects). */ public class SongodaCoreConstants { + private SongodaCoreConstants() { + throw new IllegalStateException("Utility class"); + } + public static String getCoreVersion() { return "UNKNOWN_VESION"; }