Skip to content

Conversation

@artembilan
Copy link
Member

No description provided.

@garyrussell
Copy link
Contributor

Travis reports a checkstyle problem.


@Override
public boolean supports(HandlerResult result) {
Assert.notNull(result, "'result' must not be null");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this assert; Spring will never call this with a null result.

@Override
@SuppressWarnings("unchecked")
public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result) {
Assert.notNull(result, "'result' must not be null");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the reported issue; the problem is result.getReturnValue() can return null, which is not allowed by the handleResult contract.

@garyrussell garyrussell merged commit 8ce8bf9 into spring-projects:master Dec 19, 2018
@artembilan artembilan deleted the sonar branch December 19, 2018 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants