Skip to content

Commit d592d63

Browse files
committed
Comments adjustments
1 parent bc90ddd commit d592d63

File tree

1 file changed

+5
-1
lines changed
  • headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/properties/reconcile

1 file changed

+5
-1
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/properties/reconcile/BootEnumValueParser.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
import org.springframework.ide.vscode.commons.util.EnumValueParser;
1818
import org.springframework.ide.vscode.commons.util.StringUtil;
1919

20+
/**
21+
* Boot property values allow relaxed parsing via canonical names.
22+
*
23+
* @author Alex Boyko
24+
*/
2025
public class BootEnumValueParser extends EnumValueParser {
2126

2227
private Set<String> canonicalValues;
@@ -44,7 +49,6 @@ public Object parse(String str) throws Exception {
4449
throw errorOnBlank(createBlankTextErrorMessage());
4550
}
4651

47-
// If values is not fully known then just assume the str is acceptable.
4852
if (canonicalValues.contains(getCanonicalName(str))) {
4953
return str;
5054
} else {

0 commit comments

Comments
 (0)