From ecfc6a2ea6060e06629b5d422b23b842b917f55e Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 31 Dec 2020 11:39:38 +0000 Subject: [PATCH] fix: per google style, logger is lower case (#529) * per google style, logger is lower case * format --- .../auth/appengine/AppEngineCredentials.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/appengine/java/com/google/auth/appengine/AppEngineCredentials.java b/appengine/java/com/google/auth/appengine/AppEngineCredentials.java index dbae97052..4d4b6009d 100644 --- a/appengine/java/com/google/auth/appengine/AppEngineCredentials.java +++ b/appengine/java/com/google/auth/appengine/AppEngineCredentials.java @@ -56,11 +56,7 @@ */ public class AppEngineCredentials extends GoogleCredentials implements ServiceAccountSigner { - private static final Logger LOGGER = Logger.getLogger(AppEngineCredentials.class.getName()); - private static final String APPLICATION_DEFAULT_CREDENTIALS_WARNING = - "You are attempting to " - + "fetch Application Default Credentials from com.google.auth.appengine.AppEngineCredentials." - + " This method will not return a com.google.auth.appengine.AppEngineCredentials instance."; + private static final Logger logger = Logger.getLogger(AppEngineCredentials.class.getName()); private static final long serialVersionUID = -2627708355455064660L; private final String appIdentityServiceClassName; @@ -75,7 +71,10 @@ public class AppEngineCredentials extends GoogleCredentials implements ServiceAc */ @Deprecated public static GoogleCredentials getApplicationDefault() throws IOException { - LOGGER.warning(APPLICATION_DEFAULT_CREDENTIALS_WARNING); + logger.warning( + "You are attempting to " + + "fetch Application Default Credentials from com.google.auth.appengine.AppEngineCredentials." + + " This method will not return a com.google.auth.appengine.AppEngineCredentials instance."); return GoogleCredentials.getApplicationDefault(); } @@ -86,7 +85,10 @@ public static GoogleCredentials getApplicationDefault() throws IOException { @Deprecated public static GoogleCredentials getApplicationDefault(HttpTransportFactory transportFactory) throws IOException { - LOGGER.warning(APPLICATION_DEFAULT_CREDENTIALS_WARNING); + logger.warning( + "You are attempting to fetch " + + "Application Default Credentials from com.google.auth.appengine.AppEngineCredentials. " + + "This method does not return a com.google.auth.appengine.AppEngineCredentials instance."); return GoogleCredentials.getApplicationDefault(transportFactory); }