[Patch] java.nio.charset.Charset

Michael Koch konqueror@gmx.de
Fri Apr 29 06:55:00 GMT 2005


Hi list,


I commited the attached patch for java.nio.charset.Charset to reformat
the method provider().


Michael


2005-04-29  Michael Koch  <konqueror@gmx.de>

	* java/nio/charset/Charset.java
	(provider): Reformatted.

-------------- next part --------------
Index: java/nio/charset/Charset.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/charset/Charset.java,v
retrieving revision 1.10
diff -u -r1.10 Charset.java
--- java/nio/charset/Charset.java	27 Apr 2005 07:30:36 -0000	1.10
+++ java/nio/charset/Charset.java	29 Apr 2005 06:54:21 -0000
@@ -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 @@
 
   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();
   }
 


More information about the Java-patches mailing list