diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/UserRetryController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/UserRetryController.java index b6bd1ef11..c69f842a8 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/UserRetryController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/UserRetryController.java @@ -39,6 +39,7 @@ public class UserRetryController extends BaseEditController { private static final String ROLE_PROTOCOL = "role:/"; // this is weird; need to revisit private static final Log log = LogFactory.getLog(UserRetryController.class.getName()); + @Override public void doPost (HttpServletRequest req, HttpServletResponse response) { VitroRequest request = new VitroRequest(req); @@ -73,7 +74,7 @@ public class UserRetryController extends BaseEditController { if (!epo.getUseRecycledBean()){ if (request.getParameter("uri") != null) { try { - userForEditing = (User)uDao.getUserByURI(request.getParameter("uri")); + userForEditing = uDao.getUserByURI(request.getParameter("uri")); userForEditing.setRoleURI(ROLE_PROTOCOL+userForEditing.getRoleURI()); action = "update"; epo.setAction("udpate"); @@ -117,17 +118,16 @@ public class UserRetryController extends BaseEditController { //set the getMethod so we can retrieve a new bean after we've inserted it try { - Class[] args = new Class[1]; - args[0] = String.class; + Class[] args = new Class[] {String.class}; epo.setGetMethod(uDao.getClass().getDeclaredMethod("getUserByURI",args)); } catch (NoSuchMethodException e) { log.error(this.getClass().getName()+" could not find the getVClassByURI method"); } - HashMap optionMap = new HashMap(); + HashMap> optionMap = new HashMap>(); LoginStatusBean loginBean = LoginStatusBean.getBean(request); - List roleOptionList = new LinkedList(); + List