From 09122618f40872e8aef56329800d23c75e9e7d30 Mon Sep 17 00:00:00 2001 From: bryce Date: Wed, 5 Sep 2001 07:26:33 +0000 Subject: * java/text/MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyPattern() does not throw it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45398 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/text/MessageFormat.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libjava/java/text') diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index ffe34a68a2f..aaf49075e19 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.2.3