From e64c6b5879d36d45ec6a768ff907b7857a2ee217 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sat, 11 Feb 2023 20:33:46 +0100 Subject: [fixes #3346] Add jakarta Nonnull/Nullable annotations --- src/core/lombok/ConfigurationKeys.java | 3 +- .../core/configuration/NullAnnotationLibrary.java | 3 +- src/core/lombok/core/handlers/HandlerUtil.java | 4 +- test/stubs/jakarta/annotation/Nonnull.java | 9 ++++ test/stubs/jakarta/annotation/Nullable.java | 9 ++++ .../resource/after-delombok/NullLibrary3.java | 59 ++++++++++++++++++++++ .../transform/resource/after-ecj/NullLibrary3.java | 48 ++++++++++++++++++ test/transform/resource/before/NullLibrary3.java | 8 +++ website/templates/features/configuration.html | 2 +- 9 files changed, 141 insertions(+), 4 deletions(-) create mode 100644 test/stubs/jakarta/annotation/Nonnull.java create mode 100644 test/stubs/jakarta/annotation/Nullable.java create mode 100644 test/transform/resource/after-delombok/NullLibrary3.java create mode 100644 test/transform/resource/after-ecj/NullLibrary3.java create mode 100644 test/transform/resource/before/NullLibrary3.java diff --git a/src/core/lombok/ConfigurationKeys.java b/src/core/lombok/ConfigurationKeys.java index 22d5a4c5..93bcb85f 100644 --- a/src/core/lombok/ConfigurationKeys.java +++ b/src/core/lombok/ConfigurationKeys.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2022 The Project Lombok Authors. + * Copyright (C) 2013-2023 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -103,6 +103,7 @@ public class ConfigurationKeys { * Lombok generally copies relevant nullity annotations from your source code to the right places. However, sometimes lombok generates code where the nullability of some node is not dependent on something in your source code. You can configure lombok to add an appropriate nullity annotation in this case.