Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-emailalert/src/java/com/finalist/portlets/emailalert
In directory 
james.mmbase.org:/tmp/cvs-serv25081/portlets-emailalert/src/java/com/finalist/portlets/emailalert

Modified Files:
        EmailAlertPortlet.java 
Log Message:
CMSC-852 Cleanup java files


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-emailalert/src/java/com/finalist/portlets/emailalert
See also: http://www.mmbase.org/jira/browse/CMSC-852


Index: EmailAlertPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-emailalert/src/java/com/finalist/portlets/emailalert/EmailAlertPortlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- EmailAlertPortlet.java      26 Nov 2007 11:42:56 -0000      1.2
+++ EmailAlertPortlet.java      12 Apr 2008 14:25:37 -0000      1.3
@@ -24,8 +24,6 @@
 
 public class EmailAlertPortlet extends ContentPortlet {
 
-   protected static final String ACTION_PARAM = "action";
-   protected static final String CONTENTELEMENT = "contentelement";
    private static final String SUBSCRIBEREL = "subscriberel";
    private static final String SUBSCRIBER = "subscriber";
    private static final String ERRORMESSAGES = "errormessages";
@@ -35,7 +33,7 @@
    private static final String VALID = "valid";
 
 
-   public void processView(ActionRequest request, ActionResponse response) 
throws PortletException, IOException {
+   public void processView(ActionRequest request, ActionResponse response) 
throws PortletException {
       String action = request.getParameter(ACTION_PARAM);
       Map<String, String> errorMessages = new Hashtable<String, String>();
       if (action == null) {
@@ -148,7 +146,7 @@
             request.setAttribute(CONFIRM, confirm);
          }
          if (portletSession.getAttribute(ERRORMESSAGES) != null) {
-            Hashtable errormessages = (Hashtable) 
portletSession.getAttribute(ERRORMESSAGES);
+             Map<String, String> errormessages = (Map<String, String>) 
portletSession.getAttribute(ERRORMESSAGES);
             portletSession.removeAttribute(ERRORMESSAGES);
             request.setAttribute(ERRORMESSAGES, errormessages);
          }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to