Skip to content

Commit

Permalink
Merge pull request #490 from hazendaz/master
Browse files Browse the repository at this point in the history
Update warnings withing code
  • Loading branch information
hazendaz authored Jan 28, 2017
2 parents 408f324 + 26cc0d9 commit 5d94ee2
Show file tree
Hide file tree
Showing 3 changed files with 9 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
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* Used by {@link WindowsAuthenticationToken} to convert {@link WindowsAccount}s representing groups into
* {@link GrantedAuthority}s.
*/
@FunctionalInterface
public interface GrantedAuthorityFactory {

/**
Expand Down

0 comments on commit 5d94ee2

Please sign in to comment.