diff --git a/src/main/java/org/openrewrite/java/spring/ExpandProperties.java b/src/main/java/org/openrewrite/java/spring/ExpandProperties.java index aa989fbaa..915fc7b55 100644 --- a/src/main/java/org/openrewrite/java/spring/ExpandProperties.java +++ b/src/main/java/org/openrewrite/java/spring/ExpandProperties.java @@ -72,7 +72,7 @@ public Yaml visitDocuments(Yaml.Documents documents, ExecutionContext ctx) { } }; return sourceFileMask != null ? - Preconditions.check(new HasSourcePath(sourceFileMask), visitor) + Preconditions.check(new FindSourceFiles(sourceFileMask), visitor) : visitor; } diff --git a/src/main/java/org/openrewrite/java/spring/PropertiesToKebabCase.java b/src/main/java/org/openrewrite/java/spring/PropertiesToKebabCase.java index d12901077..32ce6b078 100644 --- a/src/main/java/org/openrewrite/java/spring/PropertiesToKebabCase.java +++ b/src/main/java/org/openrewrite/java/spring/PropertiesToKebabCase.java @@ -62,7 +62,7 @@ public String getDescription() { @Override public TreeVisitor getVisitor() { - return Preconditions.check(new HasSourcePath("**/application*.{yml,yaml}"), new YamlIsoVisitor() { + return Preconditions.check(new FindSourceFiles("**/application*.{yml,yaml}"), new YamlIsoVisitor() { @Override public Yaml.Mapping.Entry visitMappingEntry(Yaml.Mapping.Entry entry, ExecutionContext ctx) { Yaml.Mapping.Entry e = super.visitMappingEntry(entry, ctx); @@ -93,7 +93,7 @@ public String getDescription() { @Override public TreeVisitor getVisitor() { - return Preconditions.check(new HasSourcePath("**/application*.properties"), new PropertiesIsoVisitor() { + return Preconditions.check(new FindSourceFiles("**/application*.properties"), new PropertiesIsoVisitor() { @Override public Properties.Entry visitEntry(Properties.Entry entry, ExecutionContext ctx) { Properties.Entry e = super.visitEntry(entry, ctx);