@@ -452,7 +452,7 @@ public HttpHeaders() {
452
452
* headers map structures, primarily for internal use within the framework.
453
453
* @param headers the headers map (expected to operate with case-insensitive keys)
454
454
* @since 5.1
455
- * @deprecated Will be made private in favor of {@link #backedBy(MultiValueMap)} in a future release.
455
+ * @deprecated Will be made default visibility in favor of {@link #backedBy(MultiValueMap)} in a future release.
456
456
*/
457
457
@ Deprecated
458
458
public HttpHeaders (MultiValueMap <String , String > headers ) {
@@ -501,6 +501,7 @@ public HttpHeaders(HttpHeaders httpHeaders) {
501
501
* headers map structures, primarily for internal use within the framework.
502
502
* @param headers the headers map (expected to operate with case-insensitive keys)
503
503
*/
504
+ @ SuppressWarnings ("deprecation" ) // @Deprecated wll be removed when visibility is changed.
504
505
public static HttpHeaders backedBy (MultiValueMap <String , String > headers ) {
505
506
return new HttpHeaders (headers );
506
507
}
@@ -513,8 +514,9 @@ public static HttpHeaders backedBy(MultiValueMap<String, String> headers) {
513
514
* likely to be out of sync and should be discarded.
514
515
* @param httpHeaders the headers to expose
515
516
*/
517
+ @ SuppressWarnings ("deprecation" ) // @Deprecated wll be removed when visibility is changed.
516
518
public static HttpHeaders backedBy (HttpHeaders httpHeaders ) {
517
- return backedBy (httpHeaders . headers );
519
+ return new HttpHeaders (httpHeaders );
518
520
}
519
521
520
522
/**
0 commit comments