Skip to content

Commit

Permalink
[sonar] Cleanup items based on sonar suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Jan 28, 2017
1 parent 0ec8789 commit 26cc0d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
*/
public final class NtlmServletRequest {

/**
* Instantiates a new ntlm servlet request.
*/
private NtlmServletRequest() {
// Prevent Instantiation of object
}

/**
* Returns a unique connection id for a given servlet request.
*
Expand All @@ -43,11 +50,4 @@ private static String getRemoteHost(final HttpServletRequest request) {
return request.getRemoteHost() == null ? request.getRemoteAddr() : request.getRemoteHost();
}

/**
* Instantiates a new ntlm servlet request.
*/
private NtlmServletRequest() {
// Prevent Instantiation of object
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private String getAuthzHeader(final ServletRequest request) {
*/
private String getAuthzHeaderProtocol(final ServletRequest request) {
final String authzHeader = this.getAuthzHeader(request);
return authzHeader.substring(0, authzHeader.indexOf(" "));
return authzHeader.substring(0, authzHeader.indexOf(' '));
}

/**
Expand Down

0 comments on commit 26cc0d9

Please sign in to comment.