Session.getAttribute returns generic type

This prevents the need to cast the attribute values.

Fixes: gh-64
This commit is contained in:
Rob Winch
2014-12-11 11:05:33 -06:00
parent 9834e91c6d
commit 604ec4a50d
3 changed files with 4 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ public class UserAccountsFilter implements Filter {
continue;
}
String username = (String) session.getAttribute("username");
String username = session.getAttribute("username");
if(username == null) {
newSessionAlias = alias;
continue;