fix(type-utils): Add missing @Nullable annotation to ActualType#getAnnotation

This commit is contained in:
2026-05-24 16:40:59 +02:00
parent 4bc05471d8
commit e5b433045f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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. - `core`: Fixed return type of `MutableStructuredConfigEntry#apply` to correctly be itself.
- `minecraft-fabric-helper`: Fixed missing new line in error log message. - `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. - `weaver-pojo`: Fixed `StringMapPojoWeaver` weaving entries without `@StringMapWeaving` annotation.
## [0.8.1] - 2026-04-26 ## [0.8.1] - 2026-04-26
@@ -100,7 +100,7 @@ public class ActualType<T> implements AnnotatedElement {
} }
@Override @Override
public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationClass) {
return layeredTypeAnnotations.getAnnotation(annotationClass); return layeredTypeAnnotations.getAnnotation(annotationClass);
} }