Commit c0815127 by Michael Koch Committed by Michael Koch

Security.java: Reformated.

2003-10-08  Michael Koch  <konqueror@gmx.de>

	* java/security/Security.java: Reformated.

From-SVN: r72240
parent a498cba5
2003-10-08 Michael Koch <konqueror@gmx.de> 2003-10-08 Michael Koch <konqueror@gmx.de>
* java/security/Security.java: Reformated.
2003-10-08 Michael Koch <konqueror@gmx.de>
* java/text/SimpleDateFormat.java * java/text/SimpleDateFormat.java
(compileFormat): Replace Character.isLetter() test with (compileFormat): Replace Character.isLetter() test with
Character.isLowerCase() || Character.isUpperCase(). Character.isLowerCase() || Character.isUpperCase().
......
...@@ -65,32 +65,35 @@ public final class Security extends Object ...@@ -65,32 +65,35 @@ public final class Security extends Object
private static Vector providers = new Vector(); private static Vector providers = new Vector();
private static Properties secprops = new Properties(); private static Properties secprops = new Properties();
static static
{ {
String base = System.getProperty("gnu.classpath.home.url"); String base = System.getProperty ("gnu.classpath.home.url");
String vendor = System.getProperty("gnu.classpath.vm.shortname"); String vendor = System.getProperty ("gnu.classpath.vm.shortname");
// Try VM specific security file // Try VM specific security file
boolean loaded = loadProviders(base, vendor); boolean loaded = loadProviders (base, vendor);
// Append classpath standard provider if possible // Append classpath standard provider if possible
if (!loadProviders(base, "classpath") && !loaded && providers.size() == 0) if (!loadProviders (base, "classpath")
{ && !loaded
// No providers found and both security files failed to load properly. && providers.size() == 0)
System.err.println {
("WARNING: could not properly read security provider files:"); // No providers found and both security files failed to load properly.
System.err.println System.err.println
(" " + base + "/security/" + vendor + ".security"); ("WARNING: could not properly read security provider files:");
System.err.println System.err.println
(" " + base + "/security/" + "classpath" + ".security"); (" " + base + "/security/" + vendor + ".security");
System.err.println System.err.println
(" Falling back to standard GNU security provider"); (" " + base + "/security/" + "classpath" + ".security");
providers.addElement(new gnu.java.security.provider.Gnu()); System.err.println
} (" Falling back to standard GNU security provider");
providers.addElement (new gnu.java.security.provider.Gnu());
}
} }
// This class can't be instantiated. // This class can't be instantiated.
private Security () private Security()
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment