Skip to content

Commit

Permalink
Build time initialize DiscriminatorValueKind inner enum
Browse files Browse the repository at this point in the history
Since DiscriminatorValueKind enum is used as annotation value, the class needs to be build-time initialized.
  • Loading branch information
andriy-dmytruk committed Dec 3, 2024
1 parent c73282f commit caa2cb0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package io.micronaut.serde.config.annotation;

import io.micronaut.context.annotation.Executable;
import io.micronaut.core.annotation.BuildTimeInit;
import io.micronaut.core.annotation.Internal;

import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -348,6 +349,7 @@ enum DiscriminatorType {
/**
* The discriminator value kind.
*/
@BuildTimeInit("io.micronaut.serde.config.annotation.SerdeConfig$SerSubtyped$DiscriminatorValueKind")
enum DiscriminatorValueKind {
CLASS_NAME, CLASS_SIMPLE_NAME, NAME, MINIMAL_CLASS
}
Expand Down

0 comments on commit caa2cb0

Please sign in to comment.