Author: hsaputra
Date: Tue Nov 16 01:25:43 2010
New Revision: 1035513
URL: http://svn.apache.org/viewvc?rev=1035513&view=rev
Log:
Remove unnecessary check for null security token variable
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java
URL:
http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java?rev=1035513&r1=1035512&r2=1035513&view=diff
==============================================================================
---
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java
(original)
+++
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/UrlParameterAuthenticationHandler.java
Tue Nov 16 01:25:43 2010
@@ -74,12 +74,9 @@ public class UrlParameterAuthenticationH
protected Map<String, String> getMappedParameters(final HttpServletRequest
request) {
Map<String, String> params = Maps.newHashMap();
- String token = null;
// old style security token
- if (token == null) {
- token = request.getParameter(SECURITY_TOKEN_PARAM);
- }
+ String token = request.getParameter(SECURITY_TOKEN_PARAM);
// OAuth2 token as a param
// NOTE: if oauth_signature_method is present then we have a OAuth 1.0
request