From 0ec8f1563c21b4861cc2fff3fe9adc071b38f156 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 27 Dec 2024 14:23:19 +0100 Subject: [PATCH] Neither option should be required if nullable --- .../org/openrewrite/java/migrate/UpdateSdkMan.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openrewrite/java/migrate/UpdateSdkMan.java b/src/main/java/org/openrewrite/java/migrate/UpdateSdkMan.java index c540c2ef0..5acbc8b8b 100644 --- a/src/main/java/org/openrewrite/java/migrate/UpdateSdkMan.java +++ b/src/main/java/org/openrewrite/java/migrate/UpdateSdkMan.java @@ -40,11 +40,17 @@ @EqualsAndHashCode(callSuper = false) public class UpdateSdkMan extends Recipe { - @Option(displayName = "Java version", description = "The Java version to update to.", example = "17") + @Option(displayName = "Java version", + description = "The Java version to update to.", + required = false, + example = "17") @Nullable String newVersion; - @Option(displayName = "Distribution", description = "The JVM distribution to use.", example = "tem") + @Option(displayName = "Distribution", + description = "The JVM distribution to use.", + required = false, + example = "tem") @Nullable String newDistribution;