Fixing squid:S1118 - Utility classes should not have public constructors

This commit is contained in:
Kirill Vlasov 2015-12-23 10:03:11 +05:00
parent 3d8c64d76d
commit c8a750df49
7 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -11,6 +11,9 @@ public class CacheStore {
static LruCache cache = null;
private CacheStore() {
}
/**
* Init cache capacity
*/

View File

@ -29,6 +29,9 @@ public class DbManager {
private static HashMap<String, UserAccount> virtualDB;
private DbManager() {
}
/**
* Create DB
*/

View File

@ -21,6 +21,9 @@ import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegT
public class SimpleAppSystemInitializer {
private SimpleAppSystemInitializer() {
}
/**
* Init test system
*/

View File

@ -32,6 +32,9 @@ public class HibernateUtil {
}
}
private HibernateUtil() {
}
public static SessionFactory getSessionFactory() {
return SESSION_FACTORY;
}

View File

@ -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

View File

@ -18,6 +18,9 @@ import java.util.Map;
*/
public class RainbowFishSerializer {
private RainbowFishSerializer() {
}
/**
* Write V1 RainbowFish to file
*/