From 4e660f11d4814ea7fbeffe462c5f52224c4f0824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Wed, 27 Mar 2024 10:54:11 +0100 Subject: [PATCH] Updated Code Style (markdown) --- Code-Style.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code-Style.md b/Code-Style.md index 564bff5..9749009 100644 --- a/Code-Style.md +++ b/Code-Style.md @@ -260,11 +260,11 @@ Assert.state(event != null, "Event must not be null"); The null-safety of Spring Framework APIs and fields must be specified using [related annotations](https://docs.spring.io/spring-framework/reference/core/null-safety.html), and consistency is enforced at build-time via [NullAway](https://github.com/uber/NullAway). -Packages are expected to enable non-null as the default in `package-info.java`: +Packages are expected to define non-null as the default in `package-info.java`: ```java @NonNullApi @NonNullFields -package org.springframework.core; +package org.springframework.mypackage; ``` And nullable fields, return values and parameters are expected to be specified explicitly using `@Nullable`: