HHH-5146 : org.hibernate.util.IdentitySet.iterator() return Map.Entry instances instead of actual elements

This commit is contained in:
Gail Badner 2011-11-07 22:37:34 -08:00
parent 8fcbf71a11
commit 9c0aa69b5b
1 changed files with 3 additions and 3 deletions

View File

@ -69,15 +69,15 @@ public class IdentitySet implements Set {
}
public Iterator iterator() {
return map.entrySet().iterator();
return map.keySet().iterator();
}
public Object[] toArray() {
return map.entrySet().toArray();
return map.keySet().toArray();
}
public Object[] toArray(Object[] a) {
return map.entrySet().toArray( a );
return map.keySet().toArray( a );
}
public boolean add(Object o) {