Skip to content

Commit b91aec9

Browse files
committed
Treat DeclarativeRecipe specially when loading recipe from descriptor
1 parent 2db435f commit b91aec9

File tree

1 file changed

+1
-1
lines changed
  • headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite

1 file changed

+1
-1
lines changed

headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/LoadUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Duration deserialize(JsonElement json, Type type, JsonDeserializationCont
5353

5454
public static Recipe createRecipe(RecipeDescriptor d, Function<String, Class<? extends Recipe>> getRecipeClass) {
5555
Class<? extends Recipe> recipeClazz = getRecipeClass.apply(d.getName());
56-
if (recipeClazz == null) {
56+
if (recipeClazz == null || DeclarativeRecipe.class.getName().equals(recipeClazz.getName())) {
5757
DeclarativeRecipe recipe = new DeclarativeRecipe(d.getName(), d.getDisplayName(), d.getDescription(),
5858
d.getTags(), d.getEstimatedEffortPerOccurrence(), d.getSource(), false);
5959
for (RecipeDescriptor subDescriptor : d.getRecipeList()) {

0 commit comments

Comments
 (0)