googleapis / googleapis/google-cloud-java

[google-auth-library-java] ComputeEngineCredentials incorrectly throws RuntimeException

Abierto
#12,616 11 comentarios 0 reacciones 1 asignado Reclamado por @silvolu Ver en GitHub
priority: p2 semver: major type: feature request
Lenguaje dominante
Java
Estrellas
2.1k
Forks
1.2k
Merge medio
1 d 23 h
PR fusionados (30 d)
154

Descripción

Unless we really think getDefaultServiceAccount can't fail here, we should not convert the IOException to a RuntimeException.

```
@Override
public String getAccount() {
if (serviceAccountEmail == null) {
try {
serviceAccountEmail = getDefaultServiceAccount();
} catch (IOException ex) {
throw new RuntimeException("Failed to to get service account", ex);
}
}
return serviceAccountEmail;
}
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.