diff --git a/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditional.java b/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditional.java index 664b0f700..3f4432838 100644 --- a/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditional.java +++ b/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditional.java @@ -66,6 +66,12 @@ public class LiveConditional { return this; } + /** + * This is a JSON key in "positiveMatches" element in the autoconfig report that contains information regarding + * the method that the conditional is applied to. + * @param positiveMatchKey + * @return + */ public LiveConditionalBuilder positiveMatchKey(String positiveMatchKey) { conditional.positiveMatchKey = positiveMatchKey; return this; diff --git a/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditionalParser.java b/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditionalParser.java index 5c207cd86..e871989fd 100644 --- a/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditionalParser.java +++ b/headless-services/commons/commons-boot-app-cli/src/main/java/org/springframework/ide/vscode/commons/boot/app/cli/LiveConditionalParser.java @@ -60,6 +60,11 @@ public class LiveConditionalParser { return Optional.empty(); } + /** + * Fetches the "positiveMatches" element in the autoconfig report that contains conditional information. + * @param positiveMatchKey + * @return + */ private Optional getPositiveMatchesJson(String autoConfigReport) { JSONObject autoConfigJson = new JSONObject(autoConfigReport); @@ -78,6 +83,10 @@ public class LiveConditionalParser { return Optional.empty(); } + /** + * Fetches all the conditionals listed in the the "positiveMatches" element in the autoconfig report. + * + */ private List getConditionalsFromPositiveMatches(String autoconfigReport) { List conditions = new ArrayList<>();