Fix app.getSessions()
This commit is contained in:
parent
3eea4d97af
commit
00070358f9
1 changed files with 9 additions and 2 deletions
|
@ -160,8 +160,15 @@ public class ApplicationBean implements Serializable {
|
||||||
*/
|
*/
|
||||||
public SessionBean[] getSessions() {
|
public SessionBean[] getSessions() {
|
||||||
Map sessions = app.getSessions();
|
Map sessions = app.getSessions();
|
||||||
Object[] array = new SessionBean[sessions.size()];
|
SessionBean[] array = new SessionBean[sessions.size()];
|
||||||
return (SessionBean[]) sessions.values().toArray(array);
|
int i = 0;
|
||||||
|
|
||||||
|
Iterator it = sessions.values().iterator();
|
||||||
|
while (it.hasNext()) {
|
||||||
|
array[i++] = new SessionBean((Session) it.next());
|
||||||
|
}
|
||||||
|
|
||||||
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue