harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r422827 - /incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java
Date Mon, 17 Jul 2006 20:01:55 GMT
Author: geirm
Date: Mon Jul 17 13:01:55 2006
New Revision: 422827

URL: http://svn.apache.org/viewvc?rev=422827&view=rev
Log:
minor tweaks

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java?rev=422827&r1=422826&r2=422827&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/FileHandlerTest.java
Mon Jul 17 13:01:55 2006
@@ -230,15 +230,19 @@
 			assertEquals(reader.read(), -1);
 		} finally {
 			try {
-				reader.close();
-				reader = null;
-			} catch (Exception e) {
-			}
+                if (reader != null) {
+                    reader.close();
+                }
+            } catch (Exception e) {
+                // don't care
+            }
 			reset(homepath, filename);
 		}
 	}
 
 	/**
+     *   Does a cleanup of  given file
+     *
 	 * @param homepath
 	 * @param filename
 	 */



Mime
View raw message