directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r358797 - /directory/network/trunk/src/java/org/apache/mina/util/Queue.java
Date Fri, 23 Dec 2005 12:01:20 GMT
Author: trustin
Date: Fri Dec 23 04:01:11 2005
New Revision: 358797

URL: http://svn.apache.org/viewcvs?rev=358797&view=rev
Log:
Related issue: DIRMINA-151 (java.lang.IllegalStateException: doFlush must return future.)
* Queue doesn't accept null values anymore.

Modified:
    directory/network/trunk/src/java/org/apache/mina/util/Queue.java

Modified: directory/network/trunk/src/java/org/apache/mina/util/Queue.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/util/Queue.java?rev=358797&r1=358796&r2=358797&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/util/Queue.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/util/Queue.java Fri Dec 23 04:01:11 2005
@@ -99,10 +99,14 @@
     /**
      * Enqueue into this queue.
      */
-    public void push( Object obj )
+    public void push( Object item )
     {
+        if( item == null )
+        {
+            throw new NullPointerException( "item" );
+        }
         ensureCapacity();
-        items[ last ] = obj;
+        items[ last ] = item;
         increaseSize();
     }
 



Mime
View raw message