Small tech-talk about adopting non-null by default strategy in Java projects, enabling that with annotations and controlling with SpotBugs. The talk was conducted in 2017 in the company that I've worked back then. Some things have already changed in Java world since then:
FindBugs is now SpotBugs.
Instead of creating our own annotation with `TypeQualifierDefault`, we can just use `javax.annotation.ParametersAreNonnullByDefault` which is already present in JSR-305
☕ Buy Me A Coffee: https://www.buymeacoffee.com/ytkach
💬 Telegram Channel: https://t.me/tkach_channel
0:00 Intro to null pointers and the problem they cause
2:00 The concept of non-null by default
4:00 Benefits of using non-null by default
6:00 How to implement non-null by default in Java projects
10:00 Examples of how non-null by default can be used to improve code quality
14:00 Conclusion