diff --git a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/EnumProcessor.java b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/EnumProcessor.java index e4a8c6d4e3..3939ceb40c 100644 --- a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/EnumProcessor.java +++ b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/EnumProcessor.java @@ -89,7 +89,8 @@ public void accept(ModuleBuilder moduleBuilder) { variantClasses.add(variantClazz); } if (isVariantLocalToModule) { - xyz.block.ftl.v1.schema.Type declType = moduleBuilder.buildType(variantType, exported); + xyz.block.ftl.v1.schema.Type declType = moduleBuilder.buildType(variantType, exported, + Nullability.NOT_NULL); TypeValue typeValue = TypeValue.newBuilder().setValue(declType).build(); EnumVariant.Builder variantBuilder = EnumVariant.newBuilder() diff --git a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/TypeAliasProcessor.java b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/TypeAliasProcessor.java index 8571caba5e..bd2c57f723 100644 --- a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/TypeAliasProcessor.java +++ b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/TypeAliasProcessor.java @@ -1,8 +1,11 @@ package xyz.block.ftl.deployment; import java.util.Collection; +import java.util.HashMap; +import java.util.Map; import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.AnnotationValue; import org.jboss.jandex.Type; import org.jboss.jandex.TypeVariable; import org.slf4j.Logger;