Specify nullability @⁠Contract for TypeDescriptor.array()

This commit is contained in:
Sam Brannen
2024-07-12 18:02:21 +02:00
parent 09d8e4458c
commit 59b9404956
2 changed files with 1 additions and 1 deletions

View File

@@ -644,6 +644,7 @@ public class TypeDescriptor implements Serializable {
* @since 3.2.1
*/
@Nullable
@Contract("!null -> !null; null -> null")
public static TypeDescriptor array(@Nullable TypeDescriptor elementTypeDescriptor) {
if (elementTypeDescriptor == null) {
return null;