Enable checkstyle on objectcache and mockito-config
[yangtools.git] / common / object-cache-api / src / main / java / org / opendaylight / yangtools / objcache / ObjectCacheFactory.java
index 30edbf4d01983543e6af8aa2633db8e3c9085000..ac9087a899ca17b92e4d8d7132454cb07655f875 100644 (file)
@@ -27,19 +27,19 @@ public final class ObjectCacheFactory {
     @GuardedBy("this")
     private static synchronized IObjectCacheFactory initialize() {
         // Double-check under lock
-        IObjectCacheFactory f = factory;
-        if (f != null) {
-            return f;
+        IObjectCacheFactory fa = factory;
+        if (fa != null) {
+            return fa;
         }
 
         try {
-            f = StaticObjectCacheBinder.getInstance().getProductCacheFactory();
-            factory = f;
+            fa = StaticObjectCacheBinder.getInstance().getProductCacheFactory();
+            factory = fa;
         } catch (NoClassDefFoundError e) {
-            f = NoopObjectCacheBinder.INSTANCE.getProductCacheFactory();
+            fa = NoopObjectCacheBinder.INSTANCE.getProductCacheFactory();
         }
 
-        return f;
+        return fa;
     }
 
     public static synchronized void reset() {
@@ -54,11 +54,11 @@ public final class ObjectCacheFactory {
      * @return Object cache instance.
      */
     public static ObjectCache getObjectCache(@Nonnull final Class<?> objClass) {
-        IObjectCacheFactory f = factory;
-        if (f == null) {
-            f = initialize();
+        IObjectCacheFactory fa = factory;
+        if (fa == null) {
+            fa = initialize();
         }
 
-        return f.getObjectCache(Preconditions.checkNotNull(objClass));
+        return fa.getObjectCache(Preconditions.checkNotNull(objClass));
     }
 }