Skip to content

Commit

Permalink
Make HttpComponentsHeadersAdapter#getFirst nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Apr 3, 2023
1 parent 3a16813 commit e931fdc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2023 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.
Expand Down Expand Up @@ -53,6 +53,7 @@ class HttpComponentsHeadersAdapter implements MultiValueMap<String, String> {


@Override
@Nullable
public String getFirst(String key) {
Header header = this.message.getFirstHeader(key);
return (header != null ? header.getValue() : null);
Expand Down

0 comments on commit e931fdc

Please sign in to comment.