google / google/auto

JSR-305 Support

Open
#575 3 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Java
Stars
10.6k
Forks
1.2k
Avg merge
6h 32m
Merged PRs (30d)
13

Description

AutoValue have @Nullable support which is great. But what about other JSR-305 capabilities.
For example, I could define annotation like
```
@Documented
@Nullable
@TypeQualifierDefault(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
public @interface MethodsReturnNullableByDefault {}
```
To remove repetitive @Nullable annotations for POJO's
This annotation will work perfectly with many tools which have JSR-305 support but AutoValue will still generate guard checks for nulls which will behave inconsistently with lint/IDE checks.

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.