Commit d462dbf0 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Compilation fix.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@349 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9701ddf5
...@@ -101,12 +101,12 @@ ...@@ -101,12 +101,12 @@
// Get all sessions associated with this user: // Get all sessions associated with this user:
int numSessions = -1; int numSessions = -1;
Session sess = null; Session sess = null;
Iterator sessions = null; Collection<Session> sessions = null;
if (user != null) { if (user != null) {
numSessions = sessionManager.getSessionCount(user.getUsername()); numSessions = sessionManager.getSessionCount(user.getUsername());
sessions = sessionManager.getSessions(user.getUsername()); sessions = sessionManager.getSessions(user.getUsername());
if (numSessions == 1) { if (numSessions == 1) {
sess = (Session)sessions.next(); sess = (Session)sessions.iterator().next();
} }
} }
%> %>
...@@ -204,8 +204,9 @@ function updateSelect(el) { ...@@ -204,8 +204,9 @@ function updateSelect(el) {
<select size="2" name="jid" multiple> <select size="2" name="jid" multiple>
<% while (sessions.hasNext()) { <% Iterator iter = sessions.iterator();
sess = (Session)sessions.next(); while (iter.hasNext()) {
sess = (Session)iter.next();
%> %>
<option value="<%= sess.getAddress().toString() %>"><%= sess.getAddress().toString() %></option> <option value="<%= sess.getAddress().toString() %>"><%= sess.getAddress().toString() %></option>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment