googleapis / googleapis/google-cloud-java
[google-auth-library-java] ComputeEngineCredentials incorrectly throws RuntimeException
オープン
priority: p2
semver: major
type: feature request
- 主要言語
- Java
- スター
- 2.1k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 157
説明
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;
}
```
コントリビューションガイド
評価
この issue はまだ評価されていません。