diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/graal/SubstituteSnappy.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/graal/SubstituteSnappy.java index e29267a9e718b..70c79e1191427 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/graal/SubstituteSnappy.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/graal/SubstituteSnappy.java @@ -3,7 +3,6 @@ import static org.apache.kafka.common.record.CompressionType.GZIP; import static org.apache.kafka.common.record.CompressionType.NONE; -import java.lang.invoke.MethodHandle; import java.util.List; import java.util.Map; import java.util.function.BooleanSupplier; @@ -15,8 +14,6 @@ import org.apache.kafka.common.utils.AppInfoParser; import org.graalvm.home.Version; -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.RecomputeFieldValue; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; @@ -26,19 +23,6 @@ * * Remove JMX */ -@TargetClass(value = CompressionType.class, innerClass = "SnappyConstructors", onlyWith = GraalVM20OrEarlier.class) -final class SubstituteSnappy { - - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) - static MethodHandle INPUT = null; - - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) - static MethodHandle OUTPUT = null; - -} - final class GraalVM20OrEarlier implements BooleanSupplier { @Override @@ -48,7 +32,7 @@ public boolean getAsBoolean() { } @TargetClass(value = CompressionType.class, onlyWith = GraalVM20OrEarlier.class) -final class FixEnumAccess { +final class SubstituteSnappy { @Substitute public static CompressionType forName(String name) {