# NullAway

5 Hacker News commenters recommended NullAway and 1 criticized it, November 2025 to November 2026. It was recommended in 3 of 13 months.

**Verdict:** Recommended as a way to add compile-time null safety to Java, pairing with JSpecify annotations. One critic says full annotation leaves code cluttered with checks and Optional wrappers.

## Why people recommend it

- Compile-time null safety for Java (3 comments): "Combine that with NullAway are you have compile time null safety" ([source](https://news.ycombinator.com/item?id=48622612)) "are a really good way to add null safety to Java applications" ([source](https://news.ycombinator.com/item?id=49714902)) "Use NullAway and it basically makes the problem go away." ([source](https://news.ycombinator.com/item?id=49715929))
- Forces fully annotated non-nullable types (3 comments): "NullAway and JSpecify encourage making as many types non-nullable as possible" ([source](https://news.ycombinator.com/item?id=49723032)) "NullAway really forces you to correctly and fully null annotate your code." ([source](https://news.ycombinator.com/item?id=48623448)) "Any serious project will be using NullAway and annotating everything" ([source](https://news.ycombinator.com/item?id=49713310))
- Makes null problems go away (2 comments): "Use NullAway and it basically makes the problem go away." ([source](https://news.ycombinator.com/item?id=49715929)) "already (in my opinion) a solved problem" ([source](https://news.ycombinator.com/item?id=46502909))

## Alternatives hackers recommend

- [zizmor](https://hackerapproved.com/p/zizmor.md): 19 recommend
- [Semgrep](https://hackerapproved.com/p/semgrep.md): 14 recommend
- [clang-tidy](https://hackerapproved.com/p/clang-tidy.md): 14 recommend
- [PHPStan](https://hackerapproved.com/p/phpstan.md): 11 recommend
- [SonarQube](https://hackerapproved.com/p/sonarqube.md): 10 recommend

## Cite as

Hacker Approved, "NullAway", https://hackerapproved.com/p/nullaway/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
