diff --git a/build.gradle b/build.gradle index 98f1575526..dc4cc1da1d 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ configure(allprojects) { project -> imports { mavenBom "com.fasterxml.jackson:jackson-bom:2.12.6" mavenBom "io.netty:netty-bom:4.1.75.Final" - mavenBom "io.projectreactor:reactor-bom:2020.0.17" + mavenBom "io.projectreactor:reactor-bom:2020.0.18" mavenBom "io.r2dbc:r2dbc-bom:Arabba-SR13" mavenBom "io.rsocket:rsocket-bom:1.1.2" mavenBom "org.eclipse.jetty:jetty-bom:9.4.46.v20220331" diff --git a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java index ad0419ee4b..3e96688756 100644 --- a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java +++ b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1061,7 +1061,7 @@ public abstract class DataBufferUtils { @Override public Context currentContext() { - return this.sink.currentContext(); + return Context.of(this.sink.contextView()); } } @@ -1158,7 +1158,7 @@ public abstract class DataBufferUtils { @Override public Context currentContext() { - return this.sink.currentContext(); + return Context.of(this.sink.contextView()); } } diff --git a/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartParser.java b/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartParser.java index ff1344424a..7ef9e9aa9e 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartParser.java +++ b/spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -105,7 +105,7 @@ final class MultipartParser extends BaseSubscriber { @Override public Context currentContext() { - return this.sink.currentContext(); + return Context.of(this.sink.contextView()); } @Override diff --git a/spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java b/spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java index 88d689d90e..484a09c6ad 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java +++ b/spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,7 +116,7 @@ final class PartGenerator extends BaseSubscriber { @Override public Context currentContext() { - return this.sink.currentContext(); + return Context.of(this.sink.contextView()); } @Override