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
This commit is contained in:
Christian Koop 2022-11-26 20:23:08 +01:00
parent 59f4adfc6f
commit 75b497a163
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -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). * that needs to be inside the final jar (might get lost when this lib is shaded into other projects).
*/ */
public class SongodaCoreConstants { public class SongodaCoreConstants {
private SongodaCoreConstants() {
throw new IllegalStateException("Utility class");
}
public static String getCoreVersion() { public static String getCoreVersion() {
return "UNKNOWN_VESION"; return "UNKNOWN_VESION";
} }