Skip to content

Commit

Permalink
Merge pull request #82 from Netflix/feature/fix_nonstatic_loggers
Browse files Browse the repository at this point in the history
Fixing non static loggers to be static, and marking non final loggers to be final
  • Loading branch information
sumanth-pasupuleti authored May 29, 2020
2 parents b201480 + 1d71ed0 commit 9f70739
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public class DIEVCacheKetamaNodeLocatorConfiguration extends EVCacheKetamaNodeLocatorConfiguration {

private static Logger log = LoggerFactory.getLogger(DIEVCacheKetamaNodeLocatorConfiguration.class);
private static final Logger log = LoggerFactory.getLogger(DIEVCacheKetamaNodeLocatorConfiguration.class);
private final EurekaClient eurekaClient;

public DIEVCacheKetamaNodeLocatorConfiguration(EVCacheClient client, EurekaClient eurekaClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public class DIEVCacheNodeListProvider implements Provider<EVCacheNodeList> {

private static Logger log = LoggerFactory.getLogger(DIEVCacheNodeListProvider.class);
private static final Logger log = LoggerFactory.getLogger(DIEVCacheNodeListProvider.class);
private final EurekaClient eurekaClient;
private PropertyRepository props;
private final ApplicationInfoManager applicationInfoManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class EurekaNodeListProvider implements EVCacheNodeList {
public static final String DEFAULT_PORT = "11211";
public static final String DEFAULT_SECURE_PORT = "11443";

private static Logger log = LoggerFactory.getLogger(EurekaNodeListProvider.class);
private static final Logger log = LoggerFactory.getLogger(EurekaNodeListProvider.class);
private final EurekaClient _eurekaClient;
private PropertyRepository props;
private final ApplicationInfoManager applicationInfoManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@Singleton
public class VersionTracker implements Runnable {

private static Logger log = LoggerFactory.getLogger(VersionTracker.class);
private static final Logger log = LoggerFactory.getLogger(VersionTracker.class);
private AtomicLong versionGauge;
private EVCacheClientPoolManager poolManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"DB_DUPLICATE_BRANCHES", "REC_CATCH_EXCEPTION","RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" })
final public class EVCacheImpl implements EVCache {

private static Logger log = LoggerFactory.getLogger(EVCacheImpl.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheImpl.class);

private final String _appName;
private final String _cacheName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@SuppressWarnings("restriction")
public class EVCacheBulkGetFuture<T> extends BulkGetFuture<T> {

private Logger log = LoggerFactory.getLogger(EVCacheBulkGetFuture.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheBulkGetFuture.class);
private final Map<String, Future<T>> rvMap;
private final Collection<Operation> ops;
private final CountDownLatch latch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public class EVCacheFuture implements Future<Boolean> {

private Logger log = LoggerFactory.getLogger(EVCacheFuture.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheFuture.class);
private final Future<Boolean> future;
private final String app;
private final ServerGroup serverGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class EVCacheFutures implements ListenableFuture<Boolean, OperationCompletionListener>,
OperationCompletionListener {

private Logger log = LoggerFactory.getLogger(EVCacheFutures.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheFutures.class);
private final OperationFuture<Boolean>[] futures;
private final String app;
private final ServerGroup serverGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("EXS_EXCEPTION_SOFTENING_HAS_CHECKED")
public class EVCacheOperationFuture<T> extends OperationFuture<T> {

private Logger log = LoggerFactory.getLogger(EVCacheOperationFuture.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheOperationFuture.class);

private final CountDownLatch latch;
private final AtomicReference<T> objRef;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" })
public class EVCacheClient {

private static Logger log = LoggerFactory.getLogger(EVCacheClient.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheClient.class);
private final ConnectionFactory connectionFactory;
private final EVCacheMemcachedClient evcacheMemcachedClient;
private final List<InetSocketAddress> memcachedNodesInZone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings({ "PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS", "REC_CATCH_EXCEPTION", "MDM_THREAD_YIELD" })
public class EVCacheClientPool implements Runnable, EVCacheClientPoolMBean {

private static Logger log = LoggerFactory.getLogger(EVCacheClientPool.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheClientPool.class);

private final String _appName;
private final String _zone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import net.spy.memcached.CachedData;

public class EVCacheClientUtil {
private static Logger log = LoggerFactory.getLogger(EVCacheClientUtil.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheClientUtil.class);
private final ChunkTranscoder ct = new ChunkTranscoder();
private final String _appName;
private final EVCacheClientPool _pool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class EVCacheNodeLocator implements NodeLocator {

private static Logger log = LoggerFactory.getLogger(EVCacheNodeLocator.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheNodeLocator.class);
private TreeMap<Long, MemcachedNode> ketamaNodes;
protected final EVCacheClient client;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class SimpleNodeListProvider implements EVCacheNodeList {

private static Logger log = LoggerFactory.getLogger(EVCacheClientPool.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheClientPool.class);
private static final String EUREKA_TIMEOUT = "evcache.eureka.timeout";

private String currentNodeList = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class KeyHasher {



private static Logger log = LoggerFactory.getLogger(KeyHasher.class);
private static final Logger log = LoggerFactory.getLogger(KeyHasher.class);
private static final Encoder encoder= Base64.getEncoder().withoutPadding();

// public static String getHashedKey1(String key, String hashingAlgorithm) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import net.spy.memcached.ops.Operation;

public class EVCacheConnection extends MemcachedConnection {
private static Logger log = LoggerFactory.getLogger(EVCacheConnection.class);
private static final Logger log = LoggerFactory.getLogger(EVCacheConnection.class);

public EVCacheConnection(String name, int bufSize, ConnectionFactory f,
List<InetSocketAddress> a, Collection<ConnectionObserver> obs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@Path("/evcrest/v1.0")
public class EVCacheRESTService {

private Logger logger = LoggerFactory.getLogger(EVCacheRESTService.class);
private static final Logger logger = LoggerFactory.getLogger(EVCacheRESTService.class);

private final EVCache.Builder builder;
private final Map<String, EVCache> evCacheMap;
Expand Down

0 comments on commit 9f70739

Please sign in to comment.