@@ -509,9 +509,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
509
509
BigQueryBaseService .BIGQUERY_EXCEPTION_HANDLER ,
510
510
getOptions ().getClock (),
511
511
EMPTY_RETRY_CONFIG );
512
- // This null check is not strictly necessary as getDatasetSkipExceptionTranslation will never
513
- // return null.
514
- return answer == null ? null : Dataset .fromPb (this , answer );
512
+ return Dataset .fromPb (this , answer );
515
513
} catch (BigQueryRetryHelperException e ) {
516
514
if (isRetryErrorCodeHttpNotFound (e )) {
517
515
if (getOptions ().getThrowNotFound ()) {
@@ -865,9 +863,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
865
863
BigQueryBaseService .BIGQUERY_EXCEPTION_HANDLER ,
866
864
getOptions ().getClock (),
867
865
EMPTY_RETRY_CONFIG );
868
- // This null check is not strictly necessary as getTableSkipExceptionTranslation will never
869
- // return null.
870
- return answer == null ? null : Table .fromPb (this , answer );
866
+ return Table .fromPb (this , answer );
871
867
} catch (BigQueryRetryHelperException e ) {
872
868
if (isRetryErrorCodeHttpNotFound (e )) {
873
869
if (getOptions ().getThrowNotFound ()) {
@@ -909,9 +905,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException {
909
905
BigQueryBaseService .BIGQUERY_EXCEPTION_HANDLER ,
910
906
getOptions ().getClock (),
911
907
EMPTY_RETRY_CONFIG );
912
- // This null check is not strictly necessary as getModelSkipExceptionTranslation will never
913
- // return null.
914
- return answer == null ? null : Model .fromPb (this , answer );
908
+ return Model .fromPb (this , answer );
915
909
} catch (BigQueryRetryHelperException e ) {
916
910
if (isRetryErrorCodeHttpNotFound (e )) {
917
911
if (getOptions ().getThrowNotFound ()) {
@@ -953,9 +947,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
953
947
BigQueryBaseService .BIGQUERY_EXCEPTION_HANDLER ,
954
948
getOptions ().getClock (),
955
949
EMPTY_RETRY_CONFIG );
956
- // This null check is not strictly necessary as getRoutineSkipExceptionTranslation will never
957
- // return null.
958
- return answer == null ? null : Routine .fromPb (this , answer );
950
+ return Routine .fromPb (this , answer );
959
951
} catch (BigQueryRetryHelperException e ) {
960
952
if (isRetryErrorCodeHttpNotFound (e )) {
961
953
if (getOptions ().getThrowNotFound ()) {
@@ -1324,9 +1316,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException {
1324
1316
BigQueryBaseService .BIGQUERY_EXCEPTION_HANDLER ,
1325
1317
getOptions ().getClock (),
1326
1318
EMPTY_RETRY_CONFIG );
1327
- // This null check is not strictly necessary as getJobSkipExceptionTranslation will never
1328
- // return null.
1329
- return answer == null ? null : Job .fromPb (this , answer );
1319
+ return Job .fromPb (this , answer );
1330
1320
} catch (BigQueryRetryHelperException e ) {
1331
1321
if (isRetryErrorCodeHttpNotFound (e )) {
1332
1322
if (getOptions ().getThrowNotFound ()) {
0 commit comments