提交 a0af0a1a 编写于 作者: I Ilkka Seppälä

Merge pull request #325 from DevFactory/utility-classes-should-not-have-public-constructors-fix-3

Utility classes should not have public constructors
...@@ -15,6 +15,9 @@ public class AppManager { ...@@ -15,6 +15,9 @@ public class AppManager {
private static CachingPolicy cachingPolicy; private static CachingPolicy cachingPolicy;
private AppManager() {
}
/** /**
* *
* Developer/Tester is able to choose whether the application should use MongoDB as its underlying * Developer/Tester is able to choose whether the application should use MongoDB as its underlying
......
...@@ -11,6 +11,9 @@ public class CacheStore { ...@@ -11,6 +11,9 @@ public class CacheStore {
static LruCache cache = null; static LruCache cache = null;
private CacheStore() {
}
/** /**
* Init cache capacity * Init cache capacity
*/ */
......
...@@ -29,6 +29,9 @@ public class DbManager { ...@@ -29,6 +29,9 @@ public class DbManager {
private static HashMap<String, UserAccount> virtualDB; private static HashMap<String, UserAccount> virtualDB;
private DbManager() {
}
/** /**
* Create DB * Create DB
*/ */
......
...@@ -21,6 +21,9 @@ import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegT ...@@ -21,6 +21,9 @@ import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegT
public class SimpleAppSystemInitializer { public class SimpleAppSystemInitializer {
private SimpleAppSystemInitializer() {
}
/** /**
* Init test system * Init test system
*/ */
......
...@@ -32,6 +32,9 @@ public class HibernateUtil { ...@@ -32,6 +32,9 @@ public class HibernateUtil {
} }
} }
private HibernateUtil() {
}
public static SessionFactory getSessionFactory() { public static SessionFactory getSessionFactory() {
return SESSION_FACTORY; return SESSION_FACTORY;
} }
......
...@@ -10,6 +10,9 @@ public class ServiceLocator { ...@@ -10,6 +10,9 @@ public class ServiceLocator {
private static ServiceCache serviceCache = new ServiceCache(); 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 * 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 * service from the {@link InitContext} and then add the newly created service into the cache map
......
...@@ -18,6 +18,9 @@ import java.util.Map; ...@@ -18,6 +18,9 @@ import java.util.Map;
*/ */
public class RainbowFishSerializer { public class RainbowFishSerializer {
private RainbowFishSerializer() {
}
/** /**
* Write V1 RainbowFish to file * Write V1 RainbowFish to file
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册