From 965a5d37eb918721a12c71ce7efe4e4db47fed52 Mon Sep 17 00:00:00 2001 From: anton Date: Sun, 16 Jun 2024 23:46:13 +0400 Subject: [PATCH] try fix --- meta/src/main/java/io/art/meta/model/MetaConstructor.java | 2 +- meta/src/main/java/io/art/meta/model/MetaType.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/src/main/java/io/art/meta/model/MetaConstructor.java b/meta/src/main/java/io/art/meta/model/MetaConstructor.java index d1e1ea213..a668c172d 100644 --- a/meta/src/main/java/io/art/meta/model/MetaConstructor.java +++ b/meta/src/main/java/io/art/meta/model/MetaConstructor.java @@ -46,7 +46,7 @@ protected MetaConstructor(MetaType type, OwnerType owner) { parameters = map(); } - protected

MetaParameter

register(MetaParameter

parameter) { + protected

> P register(P parameter) { parameters.put(parameter.name(), parameter); return parameter; } diff --git a/meta/src/main/java/io/art/meta/model/MetaType.java b/meta/src/main/java/io/art/meta/model/MetaType.java index 66dad8e16..b00b75254 100644 --- a/meta/src/main/java/io/art/meta/model/MetaType.java +++ b/meta/src/main/java/io/art/meta/model/MetaType.java @@ -240,11 +240,11 @@ public static MetaType metaType(Class type, MetaType... parameters) } - public static MetaType metaEnum(Class type, Function enumFactory) { + public static MetaType metaEnum(Class type, Function enumFactory) { return cast(computeIfAbsent(cache, CacheKey.of(type), () -> MetaType.createTypeBuilder(type) .type(cast(type)) .parameters(emptyImmutableArray()) - .enumFactory(enumFactory) + .enumFactory(cast(enumFactory)) .build())); }