You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/12/30 19:35:21 UTC
svn commit: r491283 -
/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
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 :