mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-20 08:55:06 +00:00
Fix tests not compiling under JDK 1.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2bf4149123
commit
c4e8add680
@ -248,11 +248,10 @@ private void checkBuiltInFormat(String pattern, Object[] args, Locale locale) {
|
||||
buffer.append("], locale=[");
|
||||
buffer.append(locale);
|
||||
buffer.append("]");
|
||||
MessageFormat mf = null;
|
||||
if (locale == null) {
|
||||
mf = new MessageFormat(pattern);
|
||||
} else {
|
||||
mf = new MessageFormat(pattern, locale);
|
||||
MessageFormat mf = new MessageFormat(pattern);
|
||||
if (locale != null) {
|
||||
mf.setLocale(locale);
|
||||
mf.applyPattern(pattern);
|
||||
}
|
||||
// System.out.println(buffer + ", result=[" + mf.format(args) +"]");
|
||||
ExtendedMessageFormat emf = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user