This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.security.Security


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,



I commited the attached patch to reformat the code of 
java.security.Security. to merge it with classpath.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/hHx7WSOgCCdjSDsRAo1BAKCeYwdElAs8KRMtAC7Z/CH117yVFwCfWLDa
Xyij4Q6Cn5YrYG3ik3X6Y34=
=oDmQ
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2224
diff -u -b -B -r1.2224 ChangeLog
--- ChangeLog	8 Oct 2003 20:48:10 -0000	1.2224
+++ ChangeLog	8 Oct 2003 20:59:33 -0000
@@ -1,5 +1,9 @@
 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
 	(compileFormat): Replace Character.isLetter() test with
 	Character.isLowerCase() || Character.isUpperCase().
Index: java/security/Security.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/security/Security.java,v
retrieving revision 1.14
diff -u -b -B -r1.14 Security.java
--- java/security/Security.java	7 Jun 2003 18:38:09 -0000	1.14
+++ java/security/Security.java	8 Oct 2003 20:59:33 -0000
@@ -65,16 +65,19 @@
 
   private static Vector providers = new Vector();
   private static Properties secprops = new Properties();
+  
   static
   {
-    String base = System.getProperty("gnu.classpath.home.url");
-    String vendor = System.getProperty("gnu.classpath.vm.shortname");
+      String base = System.getProperty ("gnu.classpath.home.url");
+      String vendor = System.getProperty ("gnu.classpath.vm.shortname");
     
     // Try VM specific security file
-    boolean loaded = loadProviders(base, vendor);
+      boolean loaded = loadProviders (base, vendor);
     
     // Append classpath standard provider if possible
-    if (!loadProviders(base, "classpath") && !loaded && providers.size() == 0)
+      if (!loadProviders (base, "classpath")
+	  && !loaded
+	  && providers.size() == 0)
       {
 	// No providers found and both security files failed to load properly.
 	System.err.println
@@ -85,12 +88,12 @@
 	  ("         " + base + "/security/" + "classpath" + ".security");
 	System.err.println
 	  ("         Falling back to standard GNU security provider");
-	providers.addElement(new gnu.java.security.provider.Gnu());
+	  providers.addElement (new gnu.java.security.provider.Gnu());
       }
   }
 
   // This class can't be instantiated.
-  private Security ()
+  private Security()
   {
   }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]