File tree Expand file tree Collapse file tree
google-cloud-core/src/main/java/com/google/cloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import static com .google .common .base .MoreObjects .firstNonNull ;
2020import static com .google .common .base .Preconditions .checkArgument ;
2121import static com .google .common .base .Preconditions .checkNotNull ;
22- import static java .nio .charset .StandardCharsets .UTF_8 ;
2322
2423import com .google .api .core .ApiClock ;
2524import com .google .api .core .CurrentMillisClock ;
3736import java .io .FileReader ;
3837import java .io .IOException ;
3938import java .io .InputStream ;
40- import java .io .InputStreamReader ;
4139import java .io .ObjectInputStream ;
4240import java .io .Serializable ;
4341import java .lang .reflect .Method ;
44- import java .net .HttpURLConnection ;
45- import java .net .URL ;
4642import java .nio .charset .Charset ;
4743import java .util .Locale ;
4844import java .util .Objects ;
@@ -461,6 +457,10 @@ public Credentials getCredentials() {
461457 return credentials ;
462458 }
463459
460+ /**
461+ * Returns whether the credential is {@code NoCredentials} instance
462+ * @return true if credential is a {@code NoCredentials} instance, false if not
463+ */
464464 public boolean credentialIsNoCredentialInstance () {
465465 if (credentials != null ) {
466466 return credentials .equals (NoCredentials .getInstance ());
You can’t perform that action at this time.
0 commit comments