diff --git a/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyKey.java b/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyKey.java index 56e761ffc..5c03bc83b 100644 --- a/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyKey.java +++ b/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyKey.java @@ -57,7 +57,8 @@ public String getDescription() { @Option(displayName = "Except", description = "Regex. If any of these property keys exist as direct children of `oldPropertyKey`, then they will not be moved to `newPropertyKey`.", - required = false) + required = false, + example = "jvm") @Nullable List except; diff --git a/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyValue.java b/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyValue.java index f2898c6ac..4e8061411 100644 --- a/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyValue.java +++ b/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyValue.java @@ -44,12 +44,14 @@ public String getDescription() { String propertyKey; @Option(displayName = "New value", - description = "The new value to be used for key specified by `propertyKey`.") + description = "The new value to be used for key specified by `propertyKey`.", + example = "management.metrics.enable.process.files") String newValue; @Option(displayName = "Old value", required = false, - description = "Only change the property value if it matches the configured `oldValue`.") + description = "Only change the property value if it matches the configured `oldValue`.", + example = "false") @Nullable String oldValue; diff --git a/src/main/java/org/openrewrite/java/spring/RenameBean.java b/src/main/java/org/openrewrite/java/spring/RenameBean.java index c378f07e0..6841db62a 100644 --- a/src/main/java/org/openrewrite/java/spring/RenameBean.java +++ b/src/main/java/org/openrewrite/java/spring/RenameBean.java @@ -38,14 +38,14 @@ @Value public class RenameBean extends Recipe { - @Option(required = false) + @Option(required = false, example = "foo.MyType") @Nullable String type; - @Option + @Option(example = "fooBean") String oldName; - @Option + @Option(example = "barBean") String newName; private static final String FQN_QUALIFIER = "org.springframework.beans.factory.annotation.Qualifier";