r6910 - dumbhippo/trunk/server/src/com/dumbhippo/web/servlets



Author: marinaz
Date: 2007-11-14 10:56:55 -0600 (Wed, 14 Nov 2007)
New Revision: 6910

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookAddServlet.java
Log:
Remove unusued imports and add annotations for unchecked casts.

Modified: dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookAddServlet.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookAddServlet.java	2007-11-14 16:54:48 UTC (rev 6909)
+++ dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookAddServlet.java	2007-11-14 16:56:55 UTC (rev 6910)
@@ -1,21 +1,14 @@
 package com.dumbhippo.web.servlets;
 
-import java.io.File;
 import java.io.IOException;
-import java.net.URI;
-import java.net.URISyntaxException;
 import java.util.Map;
 
-import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.slf4j.Logger;
 
-import com.facebook.api.FacebookParam;
-import com.facebook.api.FacebookSignatureUtil;
-
 import com.dumbhippo.GlobalSetup;
 import com.dumbhippo.server.Configuration;
 import com.dumbhippo.server.FacebookSystemException;
@@ -23,11 +16,12 @@
 import com.dumbhippo.server.HippoProperty;
 import com.dumbhippo.server.HumanVisibleException;
 import com.dumbhippo.server.Configuration.PropertyNotFoundException;
-import com.dumbhippo.server.applications.ApplicationSystem;
 import com.dumbhippo.tx.RetryException;
 import com.dumbhippo.web.SigninBean;
 import com.dumbhippo.web.UserSigninBean;
 import com.dumbhippo.web.WebEJBUtil;
+import com.facebook.api.FacebookParam;
+import com.facebook.api.FacebookSignatureUtil;
 
 public class FacebookAddServlet extends AbstractServlet {
 
@@ -48,10 +42,12 @@
 		String redirectUrl = "/facebook-welcome";
 		logger.debug("context params are:");
         for (Object o : request.getParameterMap().entrySet()) {
+        	@SuppressWarnings("unchecked")
             Map.Entry<String, String[]> mapEntry = (Map.Entry<String, String[]>)o;
             logger.debug("{} = {}", mapEntry.getKey(), mapEntry.getValue()[0]);
         }
       
+        @SuppressWarnings("unchecked")
         Map<String, CharSequence> facebookParams = FacebookSignatureUtil.extractFacebookParamsFromArray(request.getParameterMap());
         String secret = null;
         try {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]