Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbashir committed Jun 16, 2024
1 parent f8e0d29 commit 965a5d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meta/src/main/java/io/art/meta/model/MetaConstructor.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected MetaConstructor(MetaType<ReturnType> type, OwnerType owner) {
parameters = map();
}

protected <P> MetaParameter<P> register(MetaParameter<P> parameter) {
protected <P extends MetaParameter<?>> P register(P parameter) {
parameters.put(parameter.name(), parameter);
return parameter;
}
Expand Down
4 changes: 2 additions & 2 deletions meta/src/main/java/io/art/meta/model/MetaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ public static <T> MetaType<T> metaType(Class<?> type, MetaType<?>... parameters)
}


public static <T> MetaType<T> metaEnum(Class<?> type, Function<String, T> enumFactory) {
public static <T> MetaType<T> metaEnum(Class<?> type, Function<String, ?> enumFactory) {
return cast(computeIfAbsent(cache, CacheKey.of(type), () -> MetaType.<T>createTypeBuilder(type)
.type(cast(type))
.parameters(emptyImmutableArray())
.enumFactory(enumFactory)
.enumFactory(cast(enumFactory))
.build()));
}

Expand Down

0 comments on commit 965a5d3

Please sign in to comment.