Skip to content

Commit

Permalink
Switching to String.format from Message.format.
Browse files Browse the repository at this point in the history
  • Loading branch information
LightGuard committed Dec 1, 2010
1 parent d5f0d40 commit 4a99504
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -20,7 +20,6 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -94,7 +93,7 @@ public void findHandlers(@Observes final ProcessBean pmb, final BeanManager bm)
if (method.getJavaMember().getExceptionTypes().length != 0)
{
pmb.addDefinitionError(new IllegalArgumentException(
MessageFormat.format("Handler method %s must not throw exceptions", method.getJavaMember())));
String.format("Handler method %s must not throw exceptions", method.getJavaMember())));
}
final AnnotatedParameter p = (AnnotatedParameter) method.getParameters().get(0);
final Class exceptionType = (Class) ((ParameterizedType) p.getBaseType()).getActualTypeArguments()[0];
Expand Down

0 comments on commit 4a99504

Please sign in to comment.