From f7093e3793718bb49b4dfc68ce094b88b774e7f4 Mon Sep 17 00:00:00 2001 From: Martin Lippert Date: Fri, 24 Mar 2023 20:54:01 +0100 Subject: [PATCH] get recipe descriptors from recipes now, reflection utils method got removed --- .../commons/rewrite/config/StsClasspathScanningLoader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/config/StsClasspathScanningLoader.java b/headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/config/StsClasspathScanningLoader.java index 11046be35..78909c5ec 100644 --- a/headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/config/StsClasspathScanningLoader.java +++ b/headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/config/StsClasspathScanningLoader.java @@ -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);