Fixing squid:S1118 - Utility classes should not have public constructors
This commit is contained in:
parent
3d8c64d76d
commit
c8a750df49
@ -15,6 +15,9 @@ public class AppManager {
|
||||
|
||||
private static CachingPolicy cachingPolicy;
|
||||
|
||||
private AppManager() {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Developer/Tester is able to choose whether the application should use MongoDB as its underlying
|
||||
|
@ -11,6 +11,9 @@ public class CacheStore {
|
||||
|
||||
static LruCache cache = null;
|
||||
|
||||
private CacheStore() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Init cache capacity
|
||||
*/
|
||||
|
@ -29,6 +29,9 @@ public class DbManager {
|
||||
|
||||
private static HashMap<String, UserAccount> virtualDB;
|
||||
|
||||
private DbManager() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create DB
|
||||
*/
|
||||
|
@ -21,6 +21,9 @@ import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegT
|
||||
|
||||
public class SimpleAppSystemInitializer {
|
||||
|
||||
private SimpleAppSystemInitializer() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Init test system
|
||||
*/
|
||||
|
@ -32,6 +32,9 @@ public class HibernateUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private HibernateUtil() {
|
||||
}
|
||||
|
||||
public static SessionFactory getSessionFactory() {
|
||||
return SESSION_FACTORY;
|
||||
}
|
||||
|
@ -10,6 +10,9 @@ public class ServiceLocator {
|
||||
|
||||
private static ServiceCache serviceCache = new ServiceCache();
|
||||
|
||||
private ServiceLocator() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the service with the name param from the cache first, if no service is found, lookup the
|
||||
* service from the {@link InitContext} and then add the newly created service into the cache map
|
||||
|
@ -18,6 +18,9 @@ import java.util.Map;
|
||||
*/
|
||||
public class RainbowFishSerializer {
|
||||
|
||||
private RainbowFishSerializer() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write V1 RainbowFish to file
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user