Author: scolebourne
Date: Sun Feb 13 03:35:42 2005
New Revision: 153621

URL: http://svn.apache.org/viewcvs?view=rev&rev=153621
Log:
Remove synchronized from methods, general tidy
bug 33481

Modified:
    
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullOutputStream.java

Modified: 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullOutputStream.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullOutputStream.java?view=diff&r1=153620&r2=153621
==============================================================================
--- 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullOutputStream.java
 (original)
+++ 
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/output/NullOutputStream.java
 Sun Feb 13 03:35:42 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright 2003,2004 The Apache Software Foundation.
+ * Copyright 2003-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.commons.io.output;
  
 import java.io.IOException;
@@ -21,22 +20,26 @@
 
 /**
  * This OutputStream writes all data to the famous <b>/dev/null</b>.
- * @author <a href="mailto:[EMAIL PROTECTED]">Jeremias Maerki</a>
- * @version $Id: NullOutputStream.java,v 1.4 2004/02/23 04:40:29 bayard Exp $
+ * <p>
+ * This output stream has no destination (file/socket etc.) and all
+ * bytes written to it are ignored and lost.
+ * 
+ * @author Jeremias Maerki
+ * @version $Id$
  */
 public class NullOutputStream extends OutputStream {
 
     /**
      * @see java.io.OutputStream#write(byte[], int, int)
      */
-    public synchronized void write(byte[] b, int off, int len) {
+    public void write(byte[] b, int off, int len) {
         //to /dev/null
     }
 
     /**
      * @see java.io.OutputStream#write(int)
      */
-    public synchronized void write(int b) {
+    public void write(int b) {
         //to /dev/null
     }
 



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

Reply via email to