From 431e920dcd360cf264c34638cdb69ba176cdea76 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 23 Jan 2024 12:16:44 +0200 Subject: [PATCH] Deprecate methods of JavaVersion --- .../deployment/pkg/builditem/CompiledJavaVersionBuildItem.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/builditem/CompiledJavaVersionBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/builditem/CompiledJavaVersionBuildItem.java index ee2ab28b42d4d..33d544f1fadd4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/builditem/CompiledJavaVersionBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/builditem/CompiledJavaVersionBuildItem.java @@ -24,10 +24,13 @@ public JavaVersion getJavaVersion() { public interface JavaVersion { + @Deprecated(forRemoval = true) Status isExactlyJava11(); + @Deprecated(forRemoval = true) Status isJava11OrHigher(); + @Deprecated(forRemoval = true) Status isJava17OrHigher(); Status isJava21OrHigher();