Mercurial > hg > truffle
comparison graal/com.oracle.max.base/src/com/sun/max/collect/PoolSet64.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4141:04d21be7a24f | 4142:bc8527f3071c |
---|---|
167 return super.containsAll(others); | 167 return super.containsAll(others); |
168 } | 168 } |
169 | 169 |
170 @Override | 170 @Override |
171 public PoolSet<T> clone() { | 171 public PoolSet<T> clone() { |
172 final PoolSet64<T> clone = new PoolSet64<T>(pool); | 172 final PoolSet64<T> clone = new PoolSet64<>(pool); |
173 clone.set = set; | 173 clone.set = set; |
174 return clone; | 174 return clone; |
175 } | 175 } |
176 | 176 |
177 /** | 177 /** |
180 public Iterator<T> iterator() { | 180 public Iterator<T> iterator() { |
181 return new Iterator<T>() { | 181 return new Iterator<T>() { |
182 | 182 |
183 private long current = set; | 183 private long current = set; |
184 private long currentBit = -1L; | 184 private long currentBit = -1L; |
185 private long nextSetBit = Long.lowestOneBit(set); | |
186 | |
187 public boolean hasNext() { | 185 public boolean hasNext() { |
188 return current != 0; | 186 return current != 0; |
189 } | 187 } |
190 | 188 |
191 public T next() { | 189 public T next() { |