mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Remove unnecessary deprecation suppression
This commit is contained in:
@@ -60,13 +60,11 @@ class Netty4ClientHttpResponse extends AbstractClientHttpResponse {
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public int getRawStatusCode() throws IOException {
|
||||
return this.nettyResponse.getStatus().code();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public String getStatusText() throws IOException {
|
||||
return this.nettyResponse.getStatus().reasonPhrase();
|
||||
}
|
||||
|
||||
+2
-5
@@ -50,9 +50,7 @@ public class ChannelSendOperator<T> extends Mono<Void> implements Scannable {
|
||||
private final Flux<T> source;
|
||||
|
||||
|
||||
public ChannelSendOperator(Publisher<? extends T> source, Function<Publisher<T>,
|
||||
Publisher<Void>> writeFunction) {
|
||||
|
||||
public ChannelSendOperator(Publisher<? extends T> source, Function<Publisher<T>, Publisher<Void>> writeFunction) {
|
||||
this.source = Flux.from(source);
|
||||
this.writeFunction = writeFunction;
|
||||
}
|
||||
@@ -92,8 +90,7 @@ public class ChannelSendOperator<T> extends Mono<Void> implements Scannable {
|
||||
* <p>Also uses {@link WriteCompletionBarrier} to communicate completion
|
||||
* and detect cancel signals from the completion subscriber.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
private final class WriteBarrier implements CoreSubscriber<T>, Subscription, Publisher<T> {
|
||||
private class WriteBarrier implements CoreSubscriber<T>, Subscription, Publisher<T> {
|
||||
|
||||
/* Bridges signals to and from the completionSubscriber */
|
||||
private final WriteCompletionBarrier writeCompletionBarrier;
|
||||
|
||||
Reference in New Issue
Block a user