directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491283 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
Date Sat, 30 Dec 2006 18:35:21 GMT
Author: elecharny
Date: Sat Dec 30 10:35:20 2006
New Revision: 491283

URL: http://svn.apache.org/viewvc?view=rev&rev=491283
Log:
The iterator next() method now thows a NoSuchElementException
Added a call to super.clone() in the clone() method

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java?view=diff&rev=491283&r1=491282&r2=491283
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
Sat Dec 30 10:35:20 2006
@@ -23,6 +23,7 @@
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
+import java.util.NoSuchElementException;
 
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
@@ -155,7 +156,7 @@
     				return done;
     			}
     			
-    			public Object next() 
+    			public Object next() throws NoSuchElementException
     			{
     				done = false;
     				return value;
@@ -371,6 +372,15 @@
      */
     public Object clone()
     {
+        try
+        {
+            super.clone();
+        }
+        catch ( CloneNotSupportedException cnse )
+        {
+            // Just do nothing... Object is Cloneable
+        }
+        
     	switch ( size )
     	{
     		case 0 :



Mime
View raw message