Skip to content

Commit

Permalink
HV-1774 Fix an invalid error message for unbalanced '{'/'}'
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and gsmet committed May 6, 2020
1 parent d3b39a7 commit 5415140
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void handleBeginTerm(char character, TokenCollector tokenCollector) throw

@Override
public void handleEndTerm(char character, TokenCollector tokenCollector) throws MessageDescriptorFormatException {
throw LOG.getNonTerminatedParameterException(
throw LOG.getUnbalancedBeginEndParameterException(
tokenCollector.getOriginalMessageDescriptor(),
character
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class InterpolationTermState implements ParserState {

@Override
public void terminate(TokenCollector tokenCollector) throws MessageDescriptorFormatException {
throw LOG.getNonTerminatedParameterException(
throw LOG.getUnbalancedBeginEndParameterException(
tokenCollector.getOriginalMessageDescriptor(),
BEGIN_TERM
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void handleBeginTerm(char character, TokenCollector tokenCollector) throw

@Override
public void handleEndTerm(char character, TokenCollector tokenCollector) throws MessageDescriptorFormatException {
throw LOG.getNonTerminatedParameterException(
throw LOG.getUnbalancedBeginEndParameterException(
tokenCollector.getOriginalMessageDescriptor(),
character
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ ConstraintDefinitionException getValidatorForCrossParameterConstraintMustEitherV
ValidationException getOverridingConstraintDefinitionsInMultipleMappingFilesException(String constraintClassName);

@Message(id = 168,
value = "The message descriptor '%1$s' contains an unbalanced meta character '%2$c' parameter.")
MessageDescriptorFormatException getNonTerminatedParameterException(String messageDescriptor, char character);
value = "The message descriptor '%1$s' contains an unbalanced meta character '%2$c'.")
MessageDescriptorFormatException getUnbalancedBeginEndParameterException(String messageDescriptor, char character);

@Message(id = 169,
value = "The message descriptor '%1$s' has nested parameters.")
Expand Down

0 comments on commit 5415140

Please sign in to comment.