Skip to content

Commit e931fdc

Browse files
committed
Make HttpComponentsHeadersAdapter#getFirst nullable
Backport of gh-30267 Closes gh-30269
1 parent 3a16813 commit e931fdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-web/src/main/java/org/springframework/http/client/reactive/HttpComponentsHeadersAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,6 +53,7 @@ class HttpComponentsHeadersAdapter implements MultiValueMap<String, String> {
5353

5454

5555
@Override
56+
@Nullable
5657
public String getFirst(String key) {
5758
Header header = this.message.getFirstHeader(key);
5859
return (header != null ? header.getValue() : null);

0 commit comments

Comments
 (0)