Polish "Simplify use of Reactor's cast operator"
See gh-32141
This commit is contained in:
parent
d96a63944c
commit
4b4778d569
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2023 the original author or authors.
|
* Copyright 2002-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -167,8 +167,8 @@ public class PartEventHttpMessageReader extends LoggingCodecSupport implements H
|
||||||
Assert.state(headersToken != null, "Signal should be headers token");
|
Assert.state(headersToken != null, "Signal should be headers token");
|
||||||
|
|
||||||
HttpHeaders headers = headersToken.headers();
|
HttpHeaders headers = headersToken.headers();
|
||||||
Flux<MultipartParser.BodyToken> bodyTokens =
|
Flux<MultipartParser.BodyToken> bodyTokens = flux.ofType(
|
||||||
flux.ofType(MultipartParser.BodyToken.class);
|
MultipartParser.BodyToken.class);
|
||||||
return createEvents(headers, bodyTokens);
|
return createEvents(headers, bodyTokens);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue