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/04/25 23:11:00 UTC
svn commit: r1792681 -
/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
Author: ggregory
Date: Tue Apr 25 23:11:00 2017
New Revision: 1792681
URL: http://svn.apache.org/viewvc?rev=1792681&view=rev
Log:
HTTPCORE-458: Validate port values. Javadoc.
Modified:
httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java?rev=1792681&r1=1792680&r2=1792681&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java (original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/net/Ports.java Tue Apr 25 23:11:00 2017
@@ -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,