Skip to content

Commit

Permalink
Add @nullable to Delegating*Converter.convert()
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrandja committed Oct 9, 2020
1 parent 1657a7e commit d9b9c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.springframework.security.oauth2.server.authorization.web;

import org.springframework.lang.Nullable;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AuthenticationConverter;
import org.springframework.util.Assert;
Expand Down Expand Up @@ -50,6 +51,7 @@ public DelegatingAuthenticationConverter(List<AuthenticationConverter> converter
this.converters = Collections.unmodifiableList(new LinkedList<>(converters));
}

@Nullable
@Override
public Authentication convert(HttpServletRequest request) {
Assert.notNull(request, "request cannot be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.springframework.security.oauth2.server.authorization.web;

import org.springframework.core.convert.converter.Converter;
import org.springframework.lang.Nullable;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
import org.springframework.security.oauth2.core.endpoint.OAuth2ParameterNames;
Expand Down Expand Up @@ -48,6 +49,7 @@ public DelegatingAuthorizationGrantAuthenticationConverter(
this.converters = Collections.unmodifiableMap(new HashMap<>(converters));
}

@Nullable
@Override
public Authentication convert(HttpServletRequest request) {
Assert.notNull(request, "request cannot be null");
Expand Down

0 comments on commit d9b9c4f

Please sign in to comment.