Skip to content

Commit

Permalink
cleanup and fix some eclipse warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1615519 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Sandro Martini committed Aug 4, 2014
1 parent 8a7e158 commit f4bb952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions web-server/src/org/apache/pivot/web/server/QueryServlet.java
Expand Up @@ -153,7 +153,7 @@ public String getHostname() {
* the request was received.
*/
public int getPort() {
return port.get();
return port.get().intValue();
}

/**
Expand All @@ -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();
}

/**
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/org/apache/pivot/web/PutQuery.java
Expand Up @@ -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);
}
}

0 comments on commit f4bb952

Please sign in to comment.