GoogleContainerTools / GoogleContainerTools/jib

Incompatibility with nullway version upgrade

Open
#3,988 0 comments 0 reactions 0 assignees View on GitHub
cleanup priority:p3
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Opening issue to track compile error in PRs upgrading `com.uber.nullaway:nullaway` from 0.10.7
Blocked PRs: #3952 (previous: #3918)

```
> Task :jib-core:compileJava
/home/runner/work/jib/jib/jib-core/src/main/java/com/google/cloud/tools/jib/api/RegistryUnauthorizedException.java:47: error: [NullAway] returning @Nullable expression from method with @NonNull return type
return (HttpResponseException) getCause().getCause();
^
(see http://t.uber.com/nullaway )
/home/runner/work/jib/jib/jib-core/src/main/java/com/google/cloud/tools/jib/api/RegistryUnauthorizedException.java:47: error: [NullAway] dereferenced expression getCause() is @Nullable
return (HttpResponseException) getCause().getCause();
^
(see http://t.uber.com/nullaway )
2 errors
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.