Skip to content

Commit e20a107

Browse files
committed
fix formatting
1 parent ea6fdd0 commit e20a107

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

  • google-api-client/src/main/java/com/google/api/client/googleapis

google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public final class GoogleUtils {
8282
/** Default JDK cacerts file path relative to java.home. */
8383
@VisibleForTesting
8484
static String[] possibleJdkPaths = {
85-
"lib/security/cacerts", // Java 9+
86-
"jre/lib/security/cacerts" // Java 8 and earlier
85+
"lib/security/cacerts", // Java 9+
86+
"jre/lib/security/cacerts" // Java 8 and earlier
8787
};
8888

8989
/** Java home system property key. */
@@ -106,8 +106,8 @@ static KeyStore getBundledKeystore() throws IOException, GeneralSecurityExceptio
106106
}
107107

108108
/**
109-
* Loads the default JDK keystore (cacerts) containing trusted root certificates.
110-
* Uses Java's system properties + known cert locations to locate the default trust store.
109+
* Loads the default JDK keystore (cacerts) containing trusted root certificates. Uses Java's
110+
* system properties + known cert locations to locate the default trust store.
111111
*
112112
* @return the loaded keystore
113113
*/
@@ -141,10 +141,12 @@ static KeyStore getJdkDefaultKeyStore() throws IOException, GeneralSecurityExcep
141141
*
142142
* @since 1.14
143143
* @deprecated Depending on your build environment this method potentially can contain outdated
144-
* certs if loading jdk default certs fails.
145-
* Instead of getting trusted certs directly use an HttpTransport wrapper such as {@link <a href="https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.http.javanet.NetHttpTransport">NetHttpTransport</a>}
146-
* which uses java jdk internal classes to load default jdk certs specifically for your build
147-
* environment. If you need to access the keystore directly please create your own keystore file.
144+
* certs if loading jdk default certs fails. Instead of getting trusted certs directly use an
145+
* HttpTransport wrapper such as {@link <a
146+
* href="https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.http.javanet.NetHttpTransport">NetHttpTransport</a>}
147+
* which uses java jdk internal classes to load default jdk certs specifically for a build
148+
* environment. If you need to access the keystore directly please create your own keystore
149+
* file.
148150
*/
149151
@Deprecated
150152
public static synchronized KeyStore getCertificateTrustStore()

0 commit comments

Comments
 (0)