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:
Michael Jumper
2022-01-21 15:23:40 -08:00
parent e0fce54056
commit 0359aa6225
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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