Tagged articles

nullable

5 articles · Page 1 of 1
AndroidPub
AndroidPub
Aug 17, 2026 · Mobile Development

Why You Should Stop Misusing Kotlin’s lateinit and Let the Compiler Catch Bugs

The article explains how Kotlin's lateinit can silently bypass compile‑time null safety, leading to UninitializedPropertyAccessException crashes, and argues that using nullable types with safe‑call operators provides compile‑time guarantees, reduces runtime bugs, and improves code safety.

AndroidKotlinNullPointerException
0 likes · 11 min read
Why You Should Stop Misusing Kotlin’s lateinit and Let the Compiler Catch Bugs
Coder Trainee
Coder Trainee
Feb 26, 2026 · Backend Development

Understanding the Detailed Usage of @Nullable Annotation

This article explains how the @Nullable annotation can be applied to methods, fields, and parameters in Java, provides concrete code examples for each case, and shows a real‑world usage from Spring's StringUtils utility.

BackendJavaSpring
0 likes · 4 min read
Understanding the Detailed Usage of @Nullable Annotation
JavaGuide
JavaGuide
Nov 17, 2025 · Backend Development

How Spring Boot 4’s JSpecify Eliminates NullPointerExceptions

Spring Boot 4 adopts JSpecify’s null‑safety annotations, replacing JSR‑305, to make nullability explicit at compile time; using @NullMarked and @Nullable with tools like NullAway, developers can catch potential NPEs early, reduce defensive checks, improve API contracts, and handle collections and parameters more safely.

JSpecifyJavaNull Safety
0 likes · 13 min read
How Spring Boot 4’s JSpecify Eliminates NullPointerExceptions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 27, 2023 · Backend Development

How @Nullable Prevents Spring Bean Injection Failures

Learn how to use Spring's @Nullable annotation (or its Java equivalents) to safely handle missing beans during dependency injection, avoiding startup errors, with code examples, underlying mechanism details, and comparisons to other approaches like required=false, Optional, and ObjectFactory.

Dependency InjectionJavaSpring
0 likes · 6 min read
How @Nullable Prevents Spring Bean Injection Failures