Skip to content

Commit

Permalink
SAK-32493 EnumerationIterator: @deprecated, raw (sakaiproject#4349)
Browse files Browse the repository at this point in the history
  • Loading branch information
axxter99 authored and buckett committed Apr 28, 2017
1 parent 932812c commit 8c2745f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

public class Configuration extends HashMap
{
private static final long serialVersionUID = 1L;

public String getString(String name)
{
return (String) get(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,23 @@
* <p>
* EnumerationIterator is an iterator over an enumeration.
* </p>
* @deprecated use {@link org.apache.commons.collections4.iterators.EnumerationIterator} instead, this will be removed after 12.0 - May 2017
*/
public class EnumerationIterator implements Iterator
@Deprecated
public class EnumerationIterator<E> implements Iterator<E>
{
/** The enumeration over which this iterates. */
protected Enumeration m_enum = null;
protected Enumeration<E> m_enum = null;

public EnumerationIterator(Enumeration e)
public EnumerationIterator(Enumeration<E> e)
{
m_enum = e;

} // EnumerationIterator

public Object next()
public E next()
{
return m_enum.nextElement();
return (E) m_enum.nextElement();
}

public boolean hasNext()
Expand Down

0 comments on commit 8c2745f

Please sign in to comment.