fix(type-utils): Add missing @Nullable annotation to ActualType#getAnnotation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user