mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-641: Follow widely-accepted public static final Logger
idiom.
From https://github.com/apache/guacamole-client/pull/336#discussion_r241549475: > > SLF4J formerly recommended that instance variables be used > (non-static), but no longer takes either stance: > https://www.slf4j.org/faq.html#declared_static > > If we have to pick something to be the standard going forward, I'd > say let's stick with the accepted idiom of `private static final` > loggers, with the exception being where it's actually necessary to > not be `static` (dependency injection). >
This commit is contained in:
@@ -40,7 +40,7 @@ public abstract class CachedVaultSecretService implements VaultSecretService {
|
||||
/**
|
||||
* Logger for this class.
|
||||
*/
|
||||
private final Logger logger = LoggerFactory.getLogger(CachedVaultSecretService.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(CachedVaultSecretService.class);
|
||||
|
||||
/**
|
||||
* The cached value of a secret.
|
||||
|
@@ -49,7 +49,7 @@ public class VaultUserContext extends TokenInjectingUserContext {
|
||||
/**
|
||||
* Logger for this class.
|
||||
*/
|
||||
private final Logger logger = LoggerFactory.getLogger(VaultUserContext.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(VaultUserContext.class);
|
||||
|
||||
/**
|
||||
* The name of the token which will be replaced with the username of the
|
||||
|
Reference in New Issue
Block a user