From f4bb95200136f4dc9561e9dbb8eb74846a9b6289 Mon Sep 17 00:00:00 2001 From: Sandro Martini Date: Mon, 4 Aug 2014 09:19:04 +0000 Subject: [PATCH] cleanup and fix some eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1615519 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/pivot/web/server/QueryServlet.java | 10 +++++----- web/src/org/apache/pivot/web/PutQuery.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web-server/src/org/apache/pivot/web/server/QueryServlet.java b/web-server/src/org/apache/pivot/web/server/QueryServlet.java index 170d02b1f..e76840f3c 100644 --- a/web-server/src/org/apache/pivot/web/server/QueryServlet.java +++ b/web-server/src/org/apache/pivot/web/server/QueryServlet.java @@ -153,7 +153,7 @@ public String getHostname() { * the request was received. */ public int getPort() { - return port.get(); + return port.get().intValue(); } /** @@ -171,10 +171,10 @@ public String getServletPath() { } /** - * Tells whether the request has been ecrypted over HTTPS. + * Tells whether the request has been encrypted over HTTPS. */ public boolean isSecure() { - return secure.get(); + return secure.get().booleanValue(); } /** @@ -327,10 +327,10 @@ protected void service(HttpServletRequest request, HttpServletResponse response) try { URL url = new URL(request.getRequestURL().toString()); hostname.set(url.getHost()); - port.set(request.getLocalPort()); + port.set(new Integer(request.getLocalPort())); contextPath.set(request.getContextPath()); servletPath.set(request.getServletPath()); - secure.set(url.getProtocol().equalsIgnoreCase(HTTPS_PROTOCOL)); + secure.set(new Boolean(url.getProtocol().equalsIgnoreCase(HTTPS_PROTOCOL))); } catch (MalformedURLException exception) { throw new ServletException(exception); } diff --git a/web/src/org/apache/pivot/web/PutQuery.java b/web/src/org/apache/pivot/web/PutQuery.java index 263721877..57bc0c1a2 100644 --- a/web/src/org/apache/pivot/web/PutQuery.java +++ b/web/src/org/apache/pivot/web/PutQuery.java @@ -71,6 +71,6 @@ public void setValue(Object value) { public Boolean execute() throws QueryException { execute(METHOD, value); - return (getStatus() == Status.CREATED); + return new Boolean(getStatus() == Status.CREATED); } }