You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/12/12 16:19:10 UTC

httpcomponents-core git commit: Better Javadoc for NameValuePair.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/4.4.x cb269cd17 -> cc248e7e2


Better Javadoc for NameValuePair.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/cc248e7e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/cc248e7e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/cc248e7e

Branch: refs/heads/4.4.x
Commit: cc248e7e22df05dd0d040d802f207fa11de2f297
Parents: cb269cd
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Dec 12 09:19:07 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Dec 12 09:19:07 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/http/NameValuePair.java | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/cc248e7e/httpcore/src/main/java/org/apache/http/NameValuePair.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/NameValuePair.java b/httpcore/src/main/java/org/apache/http/NameValuePair.java
index faf4e6f..5df06bb 100644
--- a/httpcore/src/main/java/org/apache/http/NameValuePair.java
+++ b/httpcore/src/main/java/org/apache/http/NameValuePair.java
@@ -34,14 +34,23 @@ package org.apache.http;
  * attribute               = token
  * value                   = token | quoted-string
  * </pre>
- *
- *
+ * 
  * @since 4.0
  */
 public interface NameValuePair {
 
+    /**
+     * Gets the name of this pair.
+     *
+     * @return the name of this pair, never {@code null}.
+     */
     String getName();
 
+    /**
+     * Gets the value of this pair.
+     *
+     * @return the value of this pair, may be {@code null}.
+     */
     String getValue();
 
-}
+}
\ No newline at end of file