Inline private method in EvictCache

Change-Id: I34c0be3837bd76f066101fb9a7bd692a29d3034c
diff --git a/src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/EvictCache.java b/src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/EvictCache.java
index dfca8da..c0ffd23 100644
--- a/src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/EvictCache.java
+++ b/src/main/java/com/ericsson/gerrit/plugins/highavailability/forwarder/EvictCache.java
@@ -55,20 +55,16 @@
     }
     try {
       Context.setForwardedEvent(true);
-      evictCache(cache, cacheName, key);
+      if (Constants.PROJECT_LIST.equals(cacheName)) {
+        // One key is holding the list of projects
+        cache.invalidateAll();
+        logger.debug("Invalidated cache {}", cacheName);
+      } else {
+        cache.invalidate(key);
+        logger.debug("Invalidated cache {}[{}]", cacheName, key);
+      }
     } finally {
       Context.unsetForwardedEvent();
     }
   }
-
-  private void evictCache(Cache<?, ?> cache, String cacheName, Object key) {
-    if (Constants.PROJECT_LIST.equals(cacheName)) {
-      // One key is holding the list of projects
-      cache.invalidateAll();
-      logger.debug("Invalidated cache {}", cacheName);
-    } else {
-      cache.invalidate(key);
-      logger.debug("Invalidated cache {}[{}]", cacheName, key);
-    }
-  }
 }