Skip to content

Commit

Permalink
HV-805 Adding '@SuppressWarnings( "deprecation" )' to avoid deprecati…
Browse files Browse the repository at this point in the history
…on warning from jboss logging.

Also fixing some typos.
  • Loading branch information
hferentschik committed Dec 2, 2013
1 parent 75ea046 commit b9f59a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ private String interpolate(String messageTemplate,
throw ve;
}
catch ( Exception e ) {
throw log.getExceptionOcurredDuringMessageInterpolationException( e );
throw log.getExceptionOccurredDuringMessageInterpolationException( e );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
*
* @author Kevin Pollet <kevin.pollet@serli.com> (C) 2012 SERLI
*/
@SuppressWarnings("deprecation")
@MessageLogger(projectCode = "HV")
public interface Log extends BasicLogger {

Expand Down Expand Up @@ -250,11 +251,9 @@ public interface Log extends BasicLogger {
@Message(id = 59, value = "Unable to retrieve annotation parameter value.")
ValidationException getUnableToRetrieveAnnotationParameterValueException(@Cause Exception e);

//TODO: Unused; Decide whether to remove or keep it to avoid re-using the id
@Message(id = 60, value = "Multiple definitions of default group sequence provider.")
GroupDefinitionException getMultipleDefinitionOfDefaultGroupSequenceProviderException();

//TODO: Unused; Decide whether to remove or keep it to avoid re-using the id
@Message(id = 61, value = "Multiple definitions of default group sequence.")
GroupDefinitionException getMultipleDefinitionOfDefaultGroupSequenceException();

Expand Down Expand Up @@ -533,11 +532,11 @@ public interface Log extends BasicLogger {
ValidationException getConstrainedElementConfiguredMultipleTimesException(String location);

@LogMessage(level = WARN)
@Message(id = 148, value = "An exception ocurred during evaluation of EL expression '%s'")
@Message(id = 148, value = "An exception occurred during evaluation of EL expression '%s'")
void evaluatingExpressionLanguageExpressionCausedException(String expression, @Cause Exception e);

@Message(id = 149, value = "An exception occured during message interpolation")
ValidationException getExceptionOcurredDuringMessageInterpolationException(@Cause Exception e);
@Message(id = 149, value = "An exception occurred during message interpolation")
ValidationException getExceptionOccurredDuringMessageInterpolationException(@Cause Exception e);

@Message(id = 150,
value = "The constraint '%s' defines multiple validators for the type '%s'. Only one is allowed.")
Expand Down

0 comments on commit b9f59a4

Please sign in to comment.