Tagged articles
Null Safety
33 articles · Page 1 of 1
This article explores Google Guava's core utilities for Java developers, demonstrating how Joiner, Splitter, and CharMatcher simplify string handling, how Immutable collections provide true immutability versus JDK's unmodifiable views, and how Multimap, BiMap, and Table solve common collection gaps. It also covers primitive utilities, functional transforms with Functions and Predicate, null-safety via Preconditions and Optional, a self-maintaining local Cache, and ListenableFuture for cleaner async callbacks.
CachingGoogle GuavaImmutable
0 likes · 11 min read

The article explains how null values cause NullPointerException, unpredictable behavior, and resource leaks in Java, and presents twelve practical techniques—including Optional, annotations, null‑safe APIs, custom helpers, exception handling, the Null Object pattern, third‑party libraries, documentation, code reviews, testing, static analysis, and IDE support—to prevent and resolve these issues.
AnnotationsBest PracticesJava
0 likes · 5 min read

Meta has spent four and a half years building a custom, six‑stage Kotlinator pipeline to automatically translate its massive Android Java codebase to Kotlin, tackling null‑safety, build‑time, and headless J2K challenges, and now reports that only half the work is complete while the hardest problems remain.
AndroidJavaKotlin
0 likes · 20 min read

The article explains why returning null from Java service methods is risky, demonstrates how to replace null with Optional as a return type, and presents four advanced Optional usage patterns—including chaining, flatMap, and proper scope—to write safer, more readable Spring Boot code.
Best PracticesJavaNull Safety
0 likes · 12 min read

The article argues that Java’s legacy null‑pointer crashes are driving teams toward Kotlin’s built‑in null safety, sealed classes, data classes, extension and scope functions, coroutines, Compose Multiplatform, and context parameters, making Kotlin the preferred JVM language for new projects by 2026.
Compose MultiplatformCoroutinesData Classes
0 likes · 7 min read

Spring Boot 4.0 launches alongside Spring Framework 7, Spring Data 2025.1 and Spring AI 1.1, delivering a sweeping upgrade that moves the stack to Jakarta EE 11, JDK 25, JSpecify null‑safety, build‑time optimizations, native OpenTelemetry support, and a dual‑track AI strategy.
JDK25Jakarta EEJava
0 likes · 10 min read

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

Spring Boot 4 and the entire Spring family now implement full null‑safety by adopting JSpecify annotations, enabling compile‑time checks that eliminate NullPointerException, while providing a roadmap for future Java platform null‑type support and detailing the upgraded modules and tooling.
AnnotationsJSpecifyJava
0 likes · 5 min read

Spring Boot 4 now embraces JSpecify’s null‑safety annotations, allowing developers to declare nullable and non‑null types at compile time; combined with the NullAway static analyzer, this shift eliminates mysterious NullPointerExceptions in production by making null contracts explicit, reducing defensive code, and improving maintainability.
JSpecifyNull SafetyNullAway
0 likes · 13 min read


21CTOSep 13, 2025 · Mobile Development
Version 3.9 of the Dart language introduces enhanced null safety, soundness fixes, AI‑friendly MCP server support, a 50% faster CLI, smarter pub dependency handling with Git tags, cross‑compilation for ARM32 and RISC‑V, and deprecations, delivering safer, faster, and more intelligent development for Flutter apps.
DartFlutterNull Safety
0 likes · 6 min read

This article introduces Spring Boot 4.0.0 preview, built on Spring Framework 7, and walks through five major enhancements—including elegant API versioning, flexible bean registration, null‑safety with JSpecify, simplified HTTP proxy creation, plus several other upgrades and deprecations—complete with code samples and screenshots.
API versioningJavaNull Safety
0 likes · 8 min read

The article introduces Java's new preview feature that distinguishes non‑null, nullable, and unspecified types using syntax like Foo! and Foo?, explains its safety benefits, compatibility, automatic null‑pointer detection, strict initialization rules, and flexible nullness conversion, while also containing promotional material for IDE tools.
JavaNull SafetyType System
0 likes · 5 min read

This article explains Java’s preview Null‑Restricted and Nullable type system, showing how the new syntax (Foo! and Foo?) lets developers explicitly declare nullability, improves compile‑time safety, integrates with existing code, and compares the approach to TypeScript’s ! and ? operators.
JavaNull SafetyType System
0 likes · 7 min read

This article explains Java’s upcoming preview feature that introduces Null‑Restricted (Foo!) and Nullable (Foo?) types, detailing how they express nullability, improve compile‑time safety, ensure strict initialization, and compare with TypeScript’s ! and ? operators, while outlining future adoption prospects.
Null SafetyType Systempreview feature
0 likes · 7 min read

The article explains how field injection in Spring can cause null‑pointer exceptions, break immutability, violate design principles, and hide circular dependencies, and demonstrates that using constructor injection (with optional @Lazy) provides safer, more maintainable dependency management.
Circular DependencyConstructor InjectionField Injection
0 likes · 7 min read

The team’s second‑phase Flutter upgrade details why they moved to Flutter 2.x for null‑safety and performance gains, outlines the migration steps and common fixes, describes how they resolved a FlutterEngine destroyContext crash by cherry‑picking a fix, and provides a complete guide to building the iOS engine and gen_snapshot binaries, while previewing future expansion into Flutter Web and cross‑platform front‑ends.
CI/CDDartEngine Upgrade
0 likes · 13 min read

This bulletin explains Flutter’s default null safety and migration steps, warns about code‑trim pitfalls that can bloat binaries, introduces EngineGroup for multi‑engine apps with its memory trade‑offs, and outlines Android foldable adaptation through guidelines, OEM solutions, and Android 12L activity embedding.
AndroidEngineGroupFlutter
0 likes · 6 min read

This article walks through a real‑world NPE incident in a Java SpringBoot service, demonstrates how four lines of code can cause three null‑pointer exceptions, and provides practical defensive‑programming solutions such as early returns, ternary checks, Optional, and utility methods to eliminate these bugs.
JavaNPENull Safety
0 likes · 6 min read

The article compares Java and Kotlin, highlighting four Kotlin features—immutable references, null safety, extension functions, and reified generics—that improve code readability, expressiveness, and maintainability, and shows how Kotlin’s syntax and type system address Java’s shortcomings with practical code examples.
Extension FunctionsImmutable ReferencesJava
0 likes · 6 min read

Flutter 2 transforms the framework into a true multi‑platform solution by adding stable desktop (Windows, macOS, Linux) and web support, introducing dual‑screen widgets, sound null‑safety, stable FFI, and tooling upgrades, while highlighting migration challenges and future enhancements.
DartFFIFlutter
0 likes · 11 min read

This article examines the classification of mobile apps, the shortcomings of an H5‑based cash register, the rationale for adopting Kotlin over Java, a detailed overview of Kotlin’s language features and differences, practical implementation details, interoperability, null‑safety techniques, encountered issues, and the performance gains achieved after native migration.
AndroidInteroperabilityKotlin
0 likes · 16 min read

This article explains why excessive null‑checks cause a "null‑check disaster", introduces the Null Object design pattern and Java 8 Optional as clean alternatives, and showcases the NR Null Object IntelliJ plugin that can generate null‑object scaffolding automatically.
IntelliJ PluginJavaKotlin
0 likes · 10 min read

This guide walks Android engineers through adding Kotlin support to new or existing projects, explains Kotlin's variable declarations, null‑safety features, type inference, val/var usage, visibility modifiers, class inheritance, open/final semantics, and safe casting, providing concise code examples and practical tips.
AndroidClassesKotlin
0 likes · 25 min read

This article introduces Kotlin as a JVM‑based language, explains why it is chosen for Android development, details its main features such as null safety, data classes, and lambda expressions, compares compilation performance with Java, and provides practical JD‑specific integration steps, configuration tips, common pitfalls, and real‑world usage examples.
AndroidData ClassesGradle
0 likes · 13 min read


JD TechAug 2, 2018 · Mobile Development
This article introduces Kotlin as a JVM‑based language, explains why it is chosen for Android development, details its concise syntax, null‑safety, data‑class and lambda features, demonstrates interoperability with Java, analyzes compilation performance, and provides practical JD mobile‑app integration steps and common troubleshooting tips.
AndroidData ClassesKotlin
0 likes · 13 min read

This article introduces essential Kotlin language features—such as null‑safety, the safe‑call and Elvis operators, triple‑quoted strings, powerful when expressions, object declarations, observable properties, and function types—demonstrating how they enable safer, more concise Android development compared to traditional Java code.
AndroidKotlinNull Safety
0 likes · 13 min read

This article examines Kotlin’s rise after Google I/O 2017, its multi‑platform compilation capabilities, key language features such as immutability, reduced boilerplate, null‑safety, and seamless Java interoperability, while offering practical insights for Android and cross‑platform mobile developers.
AndroidInteroperabilityKotlin
0 likes · 6 min read

This article explores Kotlin's rise as a first‑class Android language, highlighting its concise syntax, null‑safety, extension functions, functional programming features, seamless Java interoperability, performance parity, and practical tips for teams transitioning from Java to Kotlin.
AndroidExtension FunctionsKotlin
0 likes · 9 min read


21CTOMay 18, 2017 · Mobile Development
This article explores Kotlin’s origins, concise syntax, null‑safety, extension functions, functional features, seamless Java interoperability, performance parity with Java, and growing adoption in Android development, highlighting why developers are rapidly switching to this modern language.
Android developmentExtension FunctionsKotlin
0 likes · 10 min read

The article presents a comprehensive programming philosophy that emphasizes repeatedly refining code, writing elegant, modular, readable, and simple programs, handling errors and null pointers robustly, and avoiding over‑engineering, offering practical guidelines applicable to any software development language.
Null Safetyerror handlingrefactoring
0 likes · 41 min read

The article explains how to write robust, error‑free code by always using two‑branch if statements, handling return values and exceptions correctly, avoiding null‑pointer pitfalls, and steering clear of over‑engineering through practical examples and clear best‑practice guidelines.
Best PracticesNull Safetycode quality
0 likes · 21 min read


21CTODec 14, 2015 · Fundamentals
This article explores practical programming philosophies for writing robust, maintainable code by using exhaustive two‑branch if statements, proper error handling, disciplined null‑pointer management, and avoiding over‑engineering, offering concrete examples and guidelines for Java and other languages.
Best PracticesNull Safetycode quality
0 likes · 21 min read

The article reviews the most notable Visual Basic 14 enhancements—including the null‑conditional operator, CallerNameAttribute, string interpolation, multi‑line strings, readonly auto‑properties, improved namespace resolution, preprocessor directives, and XML documentation support—illustrating each feature with clear VB code examples.
Null SafetyString InterpolationVB.NET
0 likes · 13 min read
