Stop NullPointerExceptions Before Production in Spring Boot 4 with Null Safety

Stop NullPointerExceptions Before Production in Spring Boot 4 with Null Safety

Dan Vega via YouTube Direct link

00:00 - The billion-dollar mistake and why nullness being implicit is problematic

1 of 11

1 of 11

00:00 - The billion-dollar mistake and why nullness being implicit is problematic

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Stop NullPointerExceptions Before Production in Spring Boot 4 with Null Safety

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 - The billion-dollar mistake and why nullness being implicit is problematic
  2. 2 02:17 - Setting up Spring Boot 4.0 RC1 project with dependencies
  3. 3 04:35 - Building the User service with potential null returns
  4. 4 07:42 - Demonstrating the classic NullPointerException scenario
  5. 5 09:06 - Introduction to JSpecify's 4 annotations @NullMarked, @Nullable, @NonNull, @NullUnmarked
  6. 6 10:15 - Implementing package-level null safety with package-info.java
  7. 7 13:28 - Adding NullAway for compile-time null checking
  8. 8 16:42 - Working with nullable fields in Coffee class and records
  9. 9 18:35 - Handling nullable elements in collections Review Service example
  10. 10 20:47 - Arrays with nullable elements Menu Service implementation
  11. 11 22:15 - Why this matters: Building confidence like you do with tests

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.