get recipe descriptors from recipes now, reflection utils method got removed

This commit is contained in:
Martin Lippert
2023-03-24 20:54:01 +01:00
parent 84ab82651f
commit f7093e3793

View File

@@ -12,7 +12,6 @@ package org.springframework.ide.vscode.commons.rewrite.config;
import static java.util.Collections.emptyList;
import static org.openrewrite.internal.RecipeIntrospectionUtils.constructRecipe;
import static org.openrewrite.internal.RecipeIntrospectionUtils.recipeDescriptorFromRecipe;
import java.lang.reflect.Constructor;
import java.nio.file.Files;
@@ -146,7 +145,7 @@ public class StsClasspathScanningLoader implements ResourceLoader, StsResourceLo
}
try {
Recipe recipe = constructRecipe(recipeClass);
recipeDescriptors.add(recipeDescriptorFromRecipe(recipe));
recipeDescriptors.add(recipe.getDescriptor());
recipes.add(recipe);
} catch (Throwable t) {
log.warn("Unable to configure " + recipeClass.getName(), t);