From e5b433045f74542a8bd72aa9ba806f0b5b679443 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Sun, 24 May 2026 16:40:59 +0200 Subject: [PATCH] fix(type-utils): Add missing `@Nullable` annotation to `ActualType#getAnnotation` --- CHANGELOG.md | 1 + .../java/de/siphalor/tweed5/typeutils/api/type/ActualType.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba8eb1e..db6b07e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `core`: Fixed return type of `MutableStructuredConfigEntry#apply` to correctly be itself. - `minecraft-fabric-helper`: Fixed missing new line in error log message. +- `type-utls`: Fixed missing `@Nullable` annotation on `ActualType#getAnnotation`. - `weaver-pojo`: Fixed `StringMapPojoWeaver` weaving entries without `@StringMapWeaving` annotation. ## [0.8.1] - 2026-04-26 diff --git a/tweed5/type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java b/tweed5/type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java index 02fe143..c86d064 100644 --- a/tweed5/type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java +++ b/tweed5/type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java @@ -100,7 +100,7 @@ public class ActualType implements AnnotatedElement { } @Override - public A getAnnotation(Class annotationClass) { + public @Nullable A getAnnotation(Class annotationClass) { return layeredTypeAnnotations.getAnnotation(annotationClass); }