Tag

JSR-305

1 views collected around this technical thread.

Java Captain
Java Captain
Dec 25, 2019 · Backend Development

Handling Null Values and Optional in Java: Best Practices and Design Patterns

This article discusses common null‑value pitfalls in Java services, explains why returning null collections is dangerous, and presents robust solutions such as returning empty lists, using Optional, applying JSR‑303/JSR‑305 annotations, and employing the Null Object pattern to improve code safety and readability.

Design PatternsJSR-303JSR-305
0 likes · 13 min read
Handling Null Values and Optional in Java: Best Practices and Design Patterns
Java Architecture Diary
Java Architecture Diary
Apr 14, 2019 · Backend Development

How JSR‑305 Annotations Boost Null‑Safety in Spring 5 and Mica Core

This article explains how Spring 5’s spring‑core jar incorporates JSR‑305 annotations, introduces the JSR‑305 standard for static analysis, and demonstrates practical usage—including package‑level rules and @Nullable/@NonNull examples—in Spring Boot microservice projects.

JSR-305JavaNullability
0 likes · 6 min read
How JSR‑305 Annotations Boost Null‑Safety in Spring 5 and Mica Core