Skip to content

Commit

Permalink
Neither option should be required if nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 27, 2024
1 parent 741217d commit 0ec8f15
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/org/openrewrite/java/migrate/UpdateSdkMan.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0ec8f15

Please sign in to comment.