This is the mail archive of the java-patches@sources.redhat.com 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]

Patch: remove debugging code


I'm checking this in.

2000-08-21  Tom Tromey  <tromey@cygnus.com>

	* java/util/ResourceBundle.java (trySomeGetBundle): Removed
	debugging prints.

Tom

Index: java/util/ResourceBundle.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/ResourceBundle.java,v
retrieving revision 1.8
diff -u -r1.8 ResourceBundle.java
--- ResourceBundle.java	2000/07/12 03:32:06	1.8
+++ ResourceBundle.java	2000/08/21 20:58:43
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999  Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -115,26 +115,22 @@
 	    }
 
 	  // Look for a properties file.
-	  {
-	    String prop_name = (bundleName.replace('.', '/') + ".properties");
-	    System.out.println ("trying '" + prop_name + "' for '" + bundleName);
-	    InputStream i = ClassLoader.getSystemResourceAsStream (prop_name);
-	    /*
-	    InputStream i = 
-		ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/') 
-						       + ".properties");
-	    */
-	    if (i != null)
-	      {
-		try {
+	  InputStream i = 
+	    ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/') 
+						   + ".properties");
+	  if (i != null)
+	    {
+	      try
+		{
 		  return new PropertyResourceBundle (i);
-		} catch (java.io.IOException e) {
+		}
+	      catch (java.io.IOException e)
+		{
 		  // The docs don't appear to define what happens in
 		  // this case, but it seems like continuing the
 		  // search is a reasonable thing to do.
 		}
-	      }
-	  }
+	    }
 
 	  if (bundleName.equals(stopHere))
 	    return result;

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