mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
2005-04-29 Michael Koch <konqueror@gmx.de>
* java/nio/charset/Charset.java (provider): Reformatted. From-SVN: r98978
This commit is contained in:
parent
2879b0203f
commit
542f0c7291
@ -1,3 +1,8 @@
|
||||
2005-04-29 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/nio/charset/Charset.java
|
||||
(provider): Reformatted.
|
||||
|
||||
2005-04-29 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* gnu/java/net/protocol/http/HTTPConnection.java:
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Charset.java --
|
||||
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@ -185,14 +185,21 @@ public abstract class Charset implements Comparable
|
||||
|
||||
private static CharsetProvider provider()
|
||||
{
|
||||
try {
|
||||
String s = System.getProperty("charset.provider");
|
||||
if(s != null){
|
||||
CharsetProvider p =
|
||||
(CharsetProvider) ((Class.forName(s)).newInstance());
|
||||
return p;
|
||||
}
|
||||
} catch(Exception e){}
|
||||
try
|
||||
{
|
||||
String s = System.getProperty("charset.provider");
|
||||
if (s != null)
|
||||
{
|
||||
CharsetProvider p =
|
||||
(CharsetProvider) ((Class.forName(s)).newInstance());
|
||||
return p;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Ignore.
|
||||
}
|
||||
|
||||
return Provider.provider();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user