Repository: wicket
Updated Branches:
  refs/heads/wicket-7.x 1236f50ad -> cf43a060d


Fix typos in javadoc. Remove unnecessary cast


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/bf7ff6d3
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/bf7ff6d3
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/bf7ff6d3

Branch: refs/heads/wicket-7.x
Commit: bf7ff6d3d2f64eaf07817508b55a51071ecd6973
Parents: 1236f50
Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Authored: Sat Oct 15 21:43:25 2016 +0200
Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Committed: Sat Oct 15 21:43:25 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/wicket/protocol/https/HttpsMapper.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/bf7ff6d3/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java 
b/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java
index 391aab0..54195ed 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/protocol/https/HttpsMapper.java
@@ -27,7 +27,6 @@ import org.apache.wicket.request.Request;
 import org.apache.wicket.request.Url;
 import org.apache.wicket.request.component.IRequestablePage;
 import org.apache.wicket.request.cycle.RequestCycle;
-import org.apache.wicket.request.http.WebRequest;
 import org.apache.wicket.request.http.WebResponse;
 import org.apache.wicket.request.mapper.IRequestMapperDelegate;
 import org.apache.wicket.util.collections.ClassMetaCache;
@@ -134,7 +133,7 @@ public class HttpsMapper implements IRequestMapperDelegate
        }
 
        /**
-        * Construts a redirect url that should switch the user to the 
specified {@code scheme}
+        * Constructs a redirect url that should switch the user to the 
specified {@code scheme}
         * 
         * @param handler
         *            request handler being accessed
@@ -146,7 +145,7 @@ public class HttpsMapper implements IRequestMapperDelegate
         */
        protected String createRedirectUrl(IRequestHandler handler, Request 
request, Scheme scheme)
        {
-               HttpServletRequest req = 
(HttpServletRequest)((WebRequest)request).getContainerRequest();
+               HttpServletRequest req = 
(HttpServletRequest)request.getContainerRequest();
                String url = scheme.urlName() + "://";
                url += req.getServerName();
                if (!scheme.usesStandardPort(config))

Reply via email to