@@ -193,10 +193,8 @@ public static GoogleCredentials getApplicationDefault(HttpTransportFactory trans
193193 }
194194
195195 /**
196- * This method is obsolete because of a potential security risk. Use the credential specific load
197- * method instead
198- *
199- * <p>Returns credentials defined by a JSON file stream.
196+ * Returns credentials defined by a JSON file stream. This method is obsolete because of a
197+ * potential security risk. Use the credential specific load method instead.
200198 *
201199 * <p>The stream can contain a Service Account key file in JSON format from the Google Developers
202200 * Console or a stored user credential using the format supported by the Cloud SDK.
@@ -236,8 +234,8 @@ public static GoogleCredentials fromStream(InputStream credentialsStream) throws
236234 }
237235
238236 /**
239- * This method is obsolete because of a potential security risk. Use the credential specific load
240- * method instead
237+ * Returns credentials defined by a JSON file stream. This method is obsolete because of a
238+ * potential security risk. Use the credential specific load method instead.
241239 *
242240 * <p>Returns credentials defined by a JSON file stream.
243241 *
@@ -249,7 +247,7 @@ public static GoogleCredentials fromStream(InputStream credentialsStream) throws
249247 * used without validation on your side.
250248 *
251249 * <p>If you know that you will be loading credential configurations of a specific type, it is
252- * recommended to use a credential-type-specific `load ()` method. This will ensure that an
250+ * recommended to use a credential-type-specific `fromStream ()` method. This will ensure that an
253251 * unexpected credential type with potential for malicious intent is not loaded unintentionally.
254252 * You might still have to do validation for certain credential types. Please follow the
255253 * recommendation for that method. For example, if you want to load only service accounts, you can
0 commit comments