From 68e550867d915cf5c5f7785df998395fa5434541 Mon Sep 17 00:00:00 2001 From: nsingh Date: Mon, 23 Jan 2017 15:10:23 -0800 Subject: [PATCH] Minor method name change --- .../ide/vscode/commons/util/EnumValueParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode-extensions/commons/commons-util/src/main/java/org/springframework/ide/vscode/commons/util/EnumValueParser.java b/vscode-extensions/commons/commons-util/src/main/java/org/springframework/ide/vscode/commons/util/EnumValueParser.java index a2541168c..fcb8c41e2 100644 --- a/vscode-extensions/commons/commons-util/src/main/java/org/springframework/ide/vscode/commons/util/EnumValueParser.java +++ b/vscode-extensions/commons/commons-util/src/main/java/org/springframework/ide/vscode/commons/util/EnumValueParser.java @@ -48,7 +48,7 @@ public class EnumValueParser implements ValueParser { // IMPORTANT: check the text FIRST before fetching values // from the hints provider, as the hints provider may be expensive when resolving values if (!StringUtil.hasText(str)) { - throw toError(createBlankTextErrorMessage()); + throw toValueParseError(createBlankTextErrorMessage()); } Collection values = this.values.get(); @@ -57,11 +57,11 @@ public class EnumValueParser implements ValueParser { if (values==null || values.contains(str)) { return str; } else { - throw toError(createErrorMessage(str, values)); + throw toValueParseError(createErrorMessage(str, values)); } } - protected Exception toError(String message) throws Exception{ + protected Exception toValueParseError(String message) throws Exception{ return ExceptionUtil.asValueParseException(message); }