Skip to content

Commit e5f188a

Browse files
author
Stephane Landelle
committed
Fix Fluent(CaseInsensitiveStrings)Map.add javadoc, close AsyncHttpClient#581
1 parent 9fdf6e7 commit e5f188a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

api/src/main/java/org/asynchttpclient/FluentCaseInsensitiveStringsMap.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public FluentCaseInsensitiveStringsMap(Map<String, Collection<String>> src) {
6464
* Adds the specified values and returns this object.
6565
*
6666
* @param key The key
67-
* @param values The value(s); if null then this method has no effect. Use the empty string to
68-
* generate an empty value
67+
* @param values The value(s); if the array is null then this method has no effect. Individual null values are turned into empty strings
6968
* @return This object
7069
*/
7170
public FluentCaseInsensitiveStringsMap add(String key, String... values) {

api/src/main/java/org/asynchttpclient/FluentStringsMap.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ public FluentStringsMap(Map<String, Collection<String>> src) {
5858
* Adds the specified values and returns this object.
5959
*
6060
* @param key The key
61-
* @param values The value(s); if null then this method has no effect. Use the empty string to
62-
* generate an empty value
61+
* @param values The value(s); if the array is null then this method has no effect
6362
* @return This object
6463
*/
6564
public FluentStringsMap add(String key, String... values) {
@@ -73,8 +72,7 @@ public FluentStringsMap add(String key, String... values) {
7372
* Adds the specified values and returns this object.
7473
*
7574
* @param key The key
76-
* @param values The value(s); if null then this method has no effect. Use an empty collection
77-
* to generate an empty value
75+
* @param values The value(s); if the array is null then this method has no effect
7876
* @return This object
7977
*/
8078
public FluentStringsMap add(String key, Collection<String> values) {

0 commit comments

Comments
 (0)