Author: scolebourne
Date: Wed Oct 11 08:48:09 2006
New Revision: 462832

URL: http://svn.apache.org/viewvc?view=rev&rev=462832
Log:
IO-95 - Remove throws IOException from methods

Modified:
    
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullWriter.java
    
jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/output/NullWriterTest.java

Modified: 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullWriter.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullWriter.java?view=diff&rev=462832&r1=462831&r2=462832
==============================================================================
--- 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullWriter.java
 (original)
+++ 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullWriter.java
 Wed Oct 11 08:48:09 2006
@@ -16,13 +16,12 @@
  */
 package org.apache.commons.io.output;
 
-import java.io.IOException;
 import java.io.Writer;
 
 /**
  * This [EMAIL PROTECTED] Writer} writes all data to the famous 
<b>/dev/null</b>.
  * <p>
- * This [EMAIL PROTECTED] Writer} has no destination (file/socket etc.) and all
+ * This <code>Writer</code> has no destination (file/socket etc.) and all
  * characters written to it are ignored and lost.
  * 
  * @version $Id$
@@ -36,37 +35,37 @@
     }
 
     /** @see java.io.Writer#write(int) */
-    public void write(int idx) throws IOException {
+    public void write(int idx) {
         //to /dev/null
     }
 
     /** @see java.io.Writer#write(char[]) */
-    public void write(char[] chr) throws IOException {
+    public void write(char[] chr) {
         //to /dev/null
     }
 
     /** @see java.io.Writer#write(char[], int, int) */
-    public void write(char[] chr, int st, int end) throws IOException {
+    public void write(char[] chr, int st, int end) {
         //to /dev/null
     }
 
     /** @see java.io.Writer#write(String) */
-    public void write(String str) throws IOException {
+    public void write(String str) {
         //to /dev/null
     }
 
     /** @see java.io.Writer#write(String, int, int) */
-    public void write(String str, int st, int end) throws IOException {
+    public void write(String str, int st, int end) {
         //to /dev/null
     }
 
     /** @see java.io.Writer#flush() */
-    public void flush() throws IOException {
+    public void flush() {
         //to /dev/null
     }
 
     /** @see java.io.Writer#close() */
-    public void close() throws IOException {
+    public void close() {
         //to /dev/null
     }
 

Modified: 
jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/output/NullWriterTest.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/output/NullWriterTest.java?view=diff&rev=462832&r1=462831&r2=462832
==============================================================================
--- 
jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/output/NullWriterTest.java
 (original)
+++ 
jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/output/NullWriterTest.java
 Wed Oct 11 08:48:09 2006
@@ -16,26 +16,21 @@
  */
 package org.apache.commons.io.output;
 
-
-import java.io.IOException;
-
 import junit.framework.TestCase;
 
-
 /**
  * Really not a lot to do here, but checking that no 
  * Exceptions are thrown. 
  *
  * @version $Revision$
  */
-
 public class NullWriterTest extends TestCase {
 
     public NullWriterTest(String name) {
         super(name);
     }
 
-    public void testNull() throws IOException {
+    public void testNull() {
         char[] chars = new char[] {'A', 'B', 'C'};
         NullWriter writer = new NullWriter();
         writer.write(1);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to