From d9ef6ef7d9afac57587fc170ee49f12a25da315c Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Wed, 5 Sep 2001 07:26:33 +0000 Subject: MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyPattern() does not throw it. * java/text/MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyPattern() does not throw it. From-SVN: r45398 --- libjava/java/text/MessageFormat.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libjava/java') diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index ffe34a6..aaf4907 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -88,14 +88,7 @@ final class MessageFormatElement { format = NumberFormat.getNumberInstance(loc); DecimalFormat df = (DecimalFormat) format; - try - { - df.applyPattern(style); - } - catch (ParseException x) - { - throw new IllegalArgumentException (x.getMessage()); - } + df.applyPattern(style); } } else if (type.equals("time") || type.equals("date")) -- cgit v1.1