Commits

ha...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed af3a1ab

Knocked out a couple of pointless info messages

  • Participants
  • Parent commits 43f68f5

Comments (0)

Files changed (1)

File src/core/java/com/opensymphony/oscache/web/ServletCacheAdministrator.java

         //this.context = context;
         flushTimes = new HashMap();
         initHostDomainInKey();
-
-        if (log.isInfoEnabled()) {
-            log.info("Constructed ServletCacheAdministrator()");
-        }
     }
 
     /**
     * @return Returns the CacheAdministrator instance for this context
     */
     public static ServletCacheAdministrator getInstance(ServletContext context, Properties p) {
-        ServletCacheAdministrator admin = null;
+        ServletCacheAdministrator admin;
         admin = (ServletCacheAdministrator) context.getAttribute(CACHE_ADMINISTRATOR_KEY);
 
         // First time we need to create the administrator and store it in the
     * when the controlling application shuts down.
     */
     public static void destroyInstance(ServletContext context) {
-        ServletCacheAdministrator admin = null;
+        ServletCacheAdministrator admin;
         admin = (ServletCacheAdministrator) context.getAttribute(CACHE_ADMINISTRATOR_KEY);
 
         if (admin != null) {
     * be created.
     */
     public Cache getAppScopeCache(ServletContext context) {
-        Cache cache = null;
+        Cache cache;
         Object obj = context.getAttribute(getCacheKey());
 
         if ((obj == null) || !(obj instanceof Cache)) {
     * one will be created.
     */
     public Cache getSessionScopeCache(HttpSession session) {
-        Cache cache = null;
+        Cache cache;
         Object obj = session.getAttribute(getCacheKey());
 
         if ((obj == null) || !(obj instanceof Cache)) {
     * @return A new cache
     */
     private ServletCache createCache(int scope, String sessionId) {
-        if (log.isInfoEnabled()) {
-            log.info("Created new cache in scope " + scope);
-        }
-
         ServletCache newCache = new ServletCache(this, algorithmClass, cacheCapacity, scope);
 
         // TODO - Fix me please!