harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r405551 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
Date Tue, 09 May 2006 21:59:18 GMT
Author: tellison
Date: Tue May  9 14:59:17 2006
New Revision: 405551

URL: http://svn.apache.org/viewcvs?rev=405551&view=rev
Log:
flush should not throw IOException

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java?rev=405551&r1=405550&r2=405551&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
Tue May  9 14:59:17 2006
@@ -413,24 +413,22 @@
 	}
 
 	/**
-	 * Flushes the formatter. If the output destination is flushable, then the
-	 * method flush() will be called on that destinaiton.
-	 * 
-	 * @throws FormatterClosedException
-	 *             If the formatter has been closed.
-	 */
-	public void flush() throws IOException {
-		checkClosed();
-		if (out instanceof Flushable) {
-			try {
-				((Flushable) out).flush();
-			} catch (IOException e) {
-				lastIOException = e;
-			}
-			;
-		}
-
-	}
+     * Flushes the formatter. If the output destination is flushable, then the
+     * method flush() will be called on that destination.
+     * 
+     * @throws FormatterClosedException
+     *             If the formatter has been closed.
+     */
+    public void flush() {
+        checkClosed();
+        if (out instanceof Flushable) {
+            try {
+                ((Flushable) out).flush();
+            } catch (IOException e) {
+                lastIOException = e;
+            }
+        }
+    }
 
 	/**
 	 * Closes the formatter. If the output destination is Closeable, then the



Mime
View raw message