You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/05/09 19:58:24 UTC
[32/50] [abbrv] httpcomponents-core git commit: HTTPCORE-458:
Validate port values. Javadoc.
HTTPCORE-458: Validate port values. Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1792681 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/874ada92
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/874ada92
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/874ada92
Branch: refs/heads/trunk
Commit: 874ada92596a5c1c866587bc9b07748dcee43e40
Parents: 7cdac6d
Author: Gary D. Gregory <gg...@apache.org>
Authored: Tue Apr 25 23:11:00 2017 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Tue Apr 25 23:11:00 2017 +0000
----------------------------------------------------------------------
httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/874ada92/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java b/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
index 156c40f..51b7bf6 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
@@ -58,8 +58,8 @@ public class Ports {
* @return the port
*
* @throws IllegalArgumentException
- * if the port parameter is outside the specified range of valid port values, which is between 0 and
- * 65535, inclusive.
+ * If the port parameter is outside the specified range of valid port values, which is between 0 and
+ * 65535, inclusive. {@code -1} indicates the scheme default port.
*/
public static int check(final int port) {
return Args.checkRange(port, SCHEME_DEFAULT, MAX_VALUE,